diff options
Diffstat (limited to 'regress/bin/ksh/eval.sh')
-rw-r--r-- | regress/bin/ksh/eval.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/regress/bin/ksh/eval.sh b/regress/bin/ksh/eval.sh new file mode 100644 index 00000000000..fb6d01f281b --- /dev/null +++ b/regress/bin/ksh/eval.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# $Id: eval.sh,v 1.1 2010/03/24 08:29:44 fgsch Exp $ + +for n in ${a#*=}; do echo ${n}; done +for n in "${a#*=}"; do echo ${n}; done + +for n in ${a##*=}; do echo ${n}; done +for n in "${a##*=}"; do echo ${n}; done + +for n in ${a%=*}; do echo ${n}; done +for n in "${a%=*}"; do echo ${n}; done + +for n in ${a%%=*}; do echo ${n}; done +for n in "${a%%=*}"; do echo ${n}; done |