a34b05d2e6
This opens an OpenBSD-mirabile (aka MirBSD) repository. ### MirBSD is: # Copyright (c) 1982-2003 by Thorsten "mirabile" Glaser <x86@ePost.de> # Copyright © 1968-2003 The authors of And contributors to UNIX®, the # C Language, BSD/Berkeley Unix; 386BSD, NetBSD 1.1 and OpenBSD. # # Anyone who obtained a copy of this work is hereby permitted to freely use, # distribute, modify, merge, sublicence, give away or sell it as long as the # authors are given due credit and the following notice is retained: # # This work is provided "as is", with no explicit or implicit warranty what- # soever. Use it only at your own risk. In no event may an author or contri- # butor be held liable for any damage, directly or indirectly, that origina- # ted through or is caused by creation or modification of this work. MirBSD is my private tree. MirBSD does not differ very much from OpenBSD and intentionally tracks OpenBSD. That's why it _is_ OpenBSD, just not the official one. It's like with DarrenBSD. At time of this writing, no advertising for MirBSD must be done, because the advertising clause has not yet been sorted out. http://templeofhate.com/tglaser/MirBSD/index.php
100 lines
1.4 KiB
Perl
100 lines
1.4 KiB
Perl
name: xxx-quoted-newline-1
|
|
description:
|
|
Check that \<newline> works inside of ${}
|
|
stdin:
|
|
abc=2
|
|
echo ${ab\
|
|
c}
|
|
expected-stdout:
|
|
2
|
|
---
|
|
|
|
name: xxx-quoted-newline-2
|
|
description:
|
|
Check that \<newline> works at the start of a here document
|
|
stdin:
|
|
cat << EO\
|
|
F
|
|
hi
|
|
EOF
|
|
expected-stdout:
|
|
hi
|
|
---
|
|
|
|
name: xxx-quoted-newline-3
|
|
description:
|
|
Check that \<newline> works at the end of a here document
|
|
stdin:
|
|
cat << EOF
|
|
hi
|
|
EO\
|
|
F
|
|
expected-stdout:
|
|
hi
|
|
---
|
|
|
|
name: xxx-multi-assignment-cmd
|
|
description:
|
|
Check that assignments in a command affect subsequent assignments
|
|
in the same command
|
|
stdin:
|
|
FOO=abc
|
|
FOO=123 BAR=$FOO
|
|
echo $BAR
|
|
expected-stdout:
|
|
123
|
|
---
|
|
|
|
name: xxx-exec-environment-1
|
|
description:
|
|
Check to see if exec sets it's environment correctly
|
|
stdin:
|
|
FOO=bar exec env
|
|
expected-stdout-pattern:
|
|
/(^|.*\n)FOO=bar\n/
|
|
---
|
|
|
|
name: xxx-exec-environment-2
|
|
description:
|
|
Check to make sure exec doesn't change environment if a program
|
|
isn't exec-ed
|
|
# Under os/2, _emx_sig environment variable changes.
|
|
category: !os:os2
|
|
stdin:
|
|
env > bar1
|
|
FOO=bar exec; env > bar2
|
|
cmp -s bar1 bar2
|
|
---
|
|
|
|
name: xxx-what-do-you-call-this-1
|
|
stdin:
|
|
echo "${foo:-"a"}*"
|
|
expected-stdout:
|
|
a*
|
|
---
|
|
|
|
name: xxx-prefix-strip-1
|
|
stdin:
|
|
foo='a cdef'
|
|
echo ${foo#a c}
|
|
expected-stdout:
|
|
def
|
|
---
|
|
|
|
name: xxx-prefix-strip-2
|
|
stdin:
|
|
set a c
|
|
x='a cdef'
|
|
echo ${x#$*}
|
|
expected-stdout:
|
|
def
|
|
---
|
|
|
|
name: xxx-variable-syntax-1
|
|
stdin:
|
|
echo ${:}
|
|
expected-stderr-pattern:
|
|
/bad substitution/
|
|
expected-exit: 1
|
|
---
|