summaryrefslogtreecommitdiff
path: root/regress/bin/ksh/eval.sh
blob: fb6d01f281b157916cf14dfe387044fc93c4eb81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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