diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-30 17:24:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-30 17:24:09 +0000 |
commit | 30cd21a3bc10a424daacf59b3dbd0fb7504fa6fa (patch) | |
tree | 5f6d9147062c70e0a60f24733e847f898d61cc9a | |
parent | 3737f6cbe11383f15a13844bd21b38685436e317 (diff) |
Add regress test to exercise octal expansion (via blackslash) in
PS1 and PS2. OK deraadt@
-rw-r--r-- | regress/bin/ksh/regress.t | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/regress/bin/ksh/regress.t b/regress/bin/ksh/regress.t index 837e29d6a07..fdc7241e2a6 100644 --- a/regress/bin/ksh/regress.t +++ b/regress/bin/ksh/regress.t @@ -1,4 +1,4 @@ -# $OpenBSD: regress.t,v 1.1 2013/12/02 20:39:44 millert Exp $ +# $OpenBSD: regress.t,v 1.2 2015/07/30 17:24:08 millert Exp $ # # The first 39 of these tests are from the old Bugs script. @@ -1089,3 +1089,24 @@ expected-stdout: ot OK --- +name: regression-63 +description: + Check octal escape expansion in prompts. +file-setup: file 644 "env" + PS1=\\131 + PS2=\\130 +env-setup: !ENV=./env! +arguments: !-i! +stdin: + echo hello + for i in 1 2 3; do + echo there + done +expected-stdout: + hello + there + there + there +expected-stderr: ! + YYXXY +--- |