sh/tests: Test some obscure cases with aliasing keywords
This commit is contained in:
parent
e5a341694e
commit
a47ba490d6
@ -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 New Issue
Block a user