mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 08:09:08 +00:00
sh: Add tests for modifying an alias (r242766).
Note: parser/alias10.0 will eat a lot of memory/cpu time when it fails (with the old sh).
This commit is contained in:
parent
e964872f18
commit
2b6ceccde5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242767
12
tools/regression/bin/sh/builtins/alias3.0
Normal file
12
tools/regression/bin/sh/builtins/alias3.0
Normal file
@ -0,0 +1,12 @@
|
||||
# $FreeBSD$
|
||||
set -e
|
||||
|
||||
unalias -a
|
||||
alias foo=bar
|
||||
alias bar=
|
||||
alias quux="1 2 3"
|
||||
alias foo=bar
|
||||
alias bar=
|
||||
alias quux="1 2 3"
|
||||
alias
|
||||
alias foo
|
4
tools/regression/bin/sh/builtins/alias3.0.stdout
Normal file
4
tools/regression/bin/sh/builtins/alias3.0.stdout
Normal file
@ -0,0 +1,4 @@
|
||||
bar=''
|
||||
foo=bar
|
||||
quux='1 2 3'
|
||||
foo=bar
|
5
tools/regression/bin/sh/parser/alias10.0
Normal file
5
tools/regression/bin/sh/parser/alias10.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
alias echo='echo'
|
||||
alias echo='echo'
|
||||
[ "`eval echo b`" = b ]
|
Loading…
Reference in New Issue
Block a user