sh/tests: Test some obscure cases with aliasing keywords

This commit is contained in:
Jilles Tjoelker 2020-05-12 21:59:21 +00:00
parent bf610960c6
commit 1bb4b6a76a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360992
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