sh/tests: Test some obscure cases with aliasing keywords

This commit is contained in:
jilles 2020-05-12 21:59:21 +00:00
parent e5a341694e
commit a47ba490d6
5 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
# $FreeBSD$
alias begin={ end=}
begin
cat <<EOF
$(echo ok)
EOF
end

View File

@ -0,0 +1 @@
ok

View File

@ -0,0 +1,9 @@
# $FreeBSD$
alias begin={ end=}
: <<EOF &&
$(echo bad1)
EOF
begin
echo ok
end

View File

@ -0,0 +1 @@
ok