source:
vendor/bash/3.1/tests/tilde.tests@
3230
| Last change on this file since 3230 was 3228, checked in by , 19 years ago | |
|---|---|
| File size: 1.1 KB | |
| Rev | Line | |
|---|---|---|
| [3228] | 1 | # this is needed because posix mode restricts tilde expansion to assignment |
| 2 | # statements preceding a command, instead of the default of expanding all | |
| 3 | # assignment statements on the line (e.g., after `export'). Without this, | |
| 4 | # the next-to-last test fails | |
| 5 | set +o posix | |
| 6 | ||
| 7 | HOME=/usr/xyz | |
| 8 | SHELL=~/bash | |
| 9 | echo ~ch\et | |
| 10 | echo ~/"foo" | |
| 11 | echo "~chet"/"foo" | |
| 12 | echo \~chet/"foo" | |
| 13 | echo \~chet/bar | |
| 14 | echo ~\chet/bar | |
| 15 | echo ~chet""/bar | |
| 16 | echo ":~chet/" | |
