Imported from ../bash-2.0.tar.gz.

This commit is contained in:
Jari Aalto 1996-12-23 17:02:34 +00:00
commit ccc6cda312
502 changed files with 91988 additions and 69123 deletions

57
tests/nquote.tests Normal file
View file

@ -0,0 +1,57 @@
expect()
{
echo expect "$@"
}
expect '<^J^J^J>'
recho $'\n\n\n'
z1=$''
expect '<>'
recho "$z1"
ZIFS=$'\n'$'\t'$' '
expect '<^J^I >'
recho "$ZIFS"
expect '<abc>'
recho $'abc'
expect '<^M^[^Gabc>'
recho $'\r\e\aabc'
D=$"hello"," "$"world"
expect '<hello,> <world>'
recho $D
expect '<hello, world>'
recho "$D"
D=$""
expect '<>'
recho "$D"
world=chet
expect '<$hello, world>'
recho \$"hello, world"
expect '<hello, $world>'
recho $"hello, \$world"
expect '<hello, "world">'
recho $"hello, \"world\""
expect '<hello, $"world">'
recho $"hello"', $"world"'
expect '<hello, $"world">'
recho $'hello, $"world"'
expect '<$hello, chet>'
recho \$"hello, $world"
expect '<hello, chet>'
recho $"hello, $world"