add regression test for our 'posix-ish' tilde mode

(well, ours IS allowed by posix, but...)
This commit is contained in:
tg 2005-05-25 14:20:53 +00:00
parent 77a65a5562
commit 8c520f4152
1 changed files with 13 additions and 1 deletions

14
check.t
View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.12 2005/05/25 13:50:15 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.13 2005/05/25 14:20:53 tg Exp $
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
@ -3686,6 +3686,18 @@ description:
arguments: !-c!echo "[$-]"!
expected-stdout-pattern: /^\[.*c.*\]$/
---
name: tilde-expand-1
description:
Check tilde expansion after equal signs
env-setup: !HOME=/sweet!
stdin:
echo ${A=a=}~ b=~ c=d~ ~
set -o posix
echo ${A=a=}~ b=~ c=d~ ~
expected-stdout:
a=/sweet b=/sweet c=d~ /sweet
a=~ b=~ c=d~ /sweet
---
name: version-1
description:
Check version of shell.