Last change
on this file since 3728 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
316 bytes
|
Rev | Line | |
---|
[3320] | 1 | # Test for correct handling of backslashes
|
---|
| 2 | a=qwerty
|
---|
| 3 |
|
---|
| 4 | b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
|
---|
| 5 | echo b1=$b
|
---|
| 6 | echo "b1=$b"
|
---|
| 7 | b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
|
---|
| 8 | echo b2=$b
|
---|
| 9 | echo "b2=$b"
|
---|
| 10 | b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
|
---|
| 11 | echo b3=$b
|
---|
| 12 | echo "b3=$b"
|
---|
| 13 |
|
---|
| 14 | c=$b
|
---|
| 15 | echo "c=$c"
|
---|
| 16 | c=${b}
|
---|
| 17 | echo "c=$c"
|
---|
| 18 | c="$b"
|
---|
| 19 | echo "c=$c"
|
---|
| 20 | c="${b}"
|
---|
| 21 | echo "c=$c"
|
---|
| 22 |
|
---|
| 23 | echo "Done: $?"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.