]> TLD Linux GIT Repositories - rc-scripts.git/blob - t/backtick-test.sh
- from PLD
[rc-scripts.git] / t / backtick-test.sh
1 #!/bin/sh
2
3 # from man sh:
4
5 # NOTE:  $(command)  expressions are currently parsed by finding the matching paren-
6 # thesis, regardless of quoting.  This will hopefully be fixed soon.
7
8 # this script file will finally tell when 'soon' comes
9
10 a=1
11
12 ret_old=`
13 case $a in
14         0)      echo "a=0";;
15         1)      echo "a=1";;
16         *)      echo "a!=[01]";;
17 esac
18 `
19
20 ret_new=$(
21 case $a in
22         0)      echo "a=0";;
23         1)      echo "a=1";;
24         *)      echo "a!=[01]";;
25 esac
26 )
27
28 echo "$ret_old vs $ret_new"