diff options
author | jilles <jilles@FreeBSD.org> | 2014-10-03 20:24:56 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-10-03 20:24:56 +0000 |
commit | ce43ba61756ee2ed39e760d4f07ccc55471fcce3 (patch) | |
tree | e7a8b5db572315e7de17bd3427a572f21da7c821 /bin/sh/tests | |
parent | 61bd408732db9323eacb07c5e0c0a11f957b76d0 (diff) | |
download | FreeBSD-src-ce43ba61756ee2ed39e760d4f07ccc55471fcce3.zip FreeBSD-src-ce43ba61756ee2ed39e760d4f07ccc55471fcce3.tar.gz |
sh: Fix LINENO and prompt after $'\0 and newline.
Diffstat (limited to 'bin/sh/tests')
-rw-r--r-- | bin/sh/tests/builtins/Makefile | 1 | ||||
-rw-r--r-- | bin/sh/tests/builtins/lineno3.0 | 6 | ||||
-rw-r--r-- | bin/sh/tests/builtins/lineno3.0.stdout | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/bin/sh/tests/builtins/Makefile b/bin/sh/tests/builtins/Makefile index 07c8098..d5d96b5 100644 --- a/bin/sh/tests/builtins/Makefile +++ b/bin/sh/tests/builtins/Makefile @@ -100,6 +100,7 @@ FILES+= jobid2.0 FILES+= kill1.0 kill2.0 FILES+= lineno.0 lineno.0.stdout FILES+= lineno2.0 +FILES+= lineno3.0 lineno3.0.stdout FILES+= local1.0 FILES+= local2.0 FILES+= local3.0 diff --git a/bin/sh/tests/builtins/lineno3.0 b/bin/sh/tests/builtins/lineno3.0 new file mode 100644 index 0000000..eb8f9ab --- /dev/null +++ b/bin/sh/tests/builtins/lineno3.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +echo before: $LINENO +dummy=$'a\0 +' +echo after: $LINENO diff --git a/bin/sh/tests/builtins/lineno3.0.stdout b/bin/sh/tests/builtins/lineno3.0.stdout new file mode 100644 index 0000000..6e0e4ac --- /dev/null +++ b/bin/sh/tests/builtins/lineno3.0.stdout @@ -0,0 +1,2 @@ +before: 3 +after: 6 |