mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 02:06:37 +00:00
sh/tests: Test some obscure cases with aliasing keywords
This commit is contained in:
parent
bf610960c6
commit
1bb4b6a76a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360992
|
@ -25,6 +25,8 @@ ${PACKAGE}FILES+= alias15.0 alias15.0.stdout
|
|||
${PACKAGE}FILES+= alias16.0
|
||||
${PACKAGE}FILES+= alias17.0
|
||||
${PACKAGE}FILES+= alias18.0
|
||||
${PACKAGE}FILES+= alias19.0 alias19.0.stdout
|
||||
${PACKAGE}FILES+= alias20.0 alias20.0.stdout
|
||||
${PACKAGE}FILES+= and-pipe-not.0
|
||||
${PACKAGE}FILES+= case1.0
|
||||
${PACKAGE}FILES+= case2.0
|
||||
|
|
8
bin/sh/tests/parser/alias19.0
Normal file
8
bin/sh/tests/parser/alias19.0
Normal file
|
@ -0,0 +1,8 @@
|
|||
# $FreeBSD$
|
||||
|
||||
alias begin={ end=}
|
||||
begin
|
||||
cat <<EOF
|
||||
$(echo ok)
|
||||
EOF
|
||||
end
|
1
bin/sh/tests/parser/alias19.0.stdout
Normal file
1
bin/sh/tests/parser/alias19.0.stdout
Normal file
|
@ -0,0 +1 @@
|
|||
ok
|
9
bin/sh/tests/parser/alias20.0
Normal file
9
bin/sh/tests/parser/alias20.0
Normal file
|
@ -0,0 +1,9 @@
|
|||
# $FreeBSD$
|
||||
|
||||
alias begin={ end=}
|
||||
: <<EOF &&
|
||||
$(echo bad1)
|
||||
EOF
|
||||
begin
|
||||
echo ok
|
||||
end
|
1
bin/sh/tests/parser/alias20.0.stdout
Normal file
1
bin/sh/tests/parser/alias20.0.stdout
Normal file
|
@ -0,0 +1 @@
|
|||
ok
|
Loading…
Reference in a new issue