diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-04-27 18:52:18 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-04-27 18:52:18 +0000 |
| commit | 24b55fb76dbda93e35ac35be71b64bf0fabd5e54 (patch) | |
| tree | 7924006b6bebfefb51924b719adbe6b8a805ae86 /bin/sh/tests | |
| parent | d7f27102b590ec681c189d71d42d6679dce0ee65 (diff) | |
Notes
Diffstat (limited to 'bin/sh/tests')
| -rw-r--r-- | bin/sh/tests/expansion/Makefile | 2 | ||||
| -rw-r--r-- | bin/sh/tests/expansion/cmdsubst25.0 | 7 | ||||
| -rw-r--r-- | bin/sh/tests/expansion/cmdsubst26.0 | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/bin/sh/tests/expansion/Makefile b/bin/sh/tests/expansion/Makefile index 078220ef990a5..f3cfc22b17c65 100644 --- a/bin/sh/tests/expansion/Makefile +++ b/bin/sh/tests/expansion/Makefile @@ -46,6 +46,8 @@ ${PACKAGE}FILES+= cmdsubst21.0 ${PACKAGE}FILES+= cmdsubst22.0 ${PACKAGE}FILES+= cmdsubst23.0 ${PACKAGE}FILES+= cmdsubst24.0 +${PACKAGE}FILES+= cmdsubst25.0 +${PACKAGE}FILES+= cmdsubst26.0 ${PACKAGE}FILES+= export1.0 ${PACKAGE}FILES+= export2.0 ${PACKAGE}FILES+= export3.0 diff --git a/bin/sh/tests/expansion/cmdsubst25.0 b/bin/sh/tests/expansion/cmdsubst25.0 new file mode 100644 index 0000000000000..83cca7d0b97e0 --- /dev/null +++ b/bin/sh/tests/expansion/cmdsubst25.0 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +IFS=' ' +set -- `printf '\n '` +IFS=: +[ "$*" = ' +' ] diff --git a/bin/sh/tests/expansion/cmdsubst26.0 b/bin/sh/tests/expansion/cmdsubst26.0 new file mode 100644 index 0000000000000..68a624b12471c --- /dev/null +++ b/bin/sh/tests/expansion/cmdsubst26.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +nl=' +' +v=$nl`printf '\n'` +[ "$v" = "$nl" ] |
