* adapt the three history-ed tests to a modern ed(1) which prints the
number of characters to stderr not stdout * fix the history-ed-3 test to check for COMPLEX HISTORY option instead
This commit is contained in:
parent
5b1a2fe3a9
commit
f6a30adbee
18
check.t
18
check.t
|
@ -1,4 +1,4 @@
|
||||||
# $MirOS: src/bin/mksh/check.t,v 1.3 2005/05/23 14:48:21 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.4 2005/05/23 15:02:04 tg Exp $
|
||||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas 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: 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 $
|
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||||
|
@ -1893,11 +1893,9 @@ stdin:
|
||||||
q
|
q
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
abc def
|
abc def
|
||||||
13
|
|
||||||
16
|
|
||||||
FOOBAR def
|
FOOBAR def
|
||||||
expected-stderr-pattern:
|
expected-stderr-pattern:
|
||||||
/^X*echo FOOBAR def\nX*$/
|
/^X*13\n16\necho FOOBAR def\nX*$/
|
||||||
---
|
---
|
||||||
name: history-ed-2
|
name: history-ed-2
|
||||||
description:
|
description:
|
||||||
|
@ -1921,17 +1919,15 @@ expected-stdout:
|
||||||
line 2 is here
|
line 2 is here
|
||||||
line 3
|
line 3
|
||||||
line 4
|
line 4
|
||||||
20
|
|
||||||
23
|
|
||||||
line 2 is changed
|
line 2 is changed
|
||||||
expected-stderr-pattern:
|
expected-stderr-pattern:
|
||||||
/^X*echo line 2 is changed\nX*$/
|
/^X*20\n23\necho line 2 is changed\nX*$/
|
||||||
---
|
---
|
||||||
name: history-ed-3
|
name: history-ed-3
|
||||||
description:
|
description:
|
||||||
Newly created multi line commands show up as single command
|
Newly created multi line commands show up as single command
|
||||||
in history.
|
in history.
|
||||||
(NOTE: will fail if using COMPLEX HISTORY compile time option)
|
(NOTE: adapted for COMPLEX HISTORY compile time option)
|
||||||
(ksh88 fails 'cause it lists the fc command)
|
(ksh88 fails 'cause it lists the fc command)
|
||||||
category: !os:os2
|
category: !os:os2
|
||||||
arguments: !-i!
|
arguments: !-i!
|
||||||
|
@ -1950,15 +1946,13 @@ stdin:
|
||||||
fc -l
|
fc -l
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
abc def
|
abc def
|
||||||
13
|
|
||||||
32
|
|
||||||
FOOBAR def
|
FOOBAR def
|
||||||
a new line
|
a new line
|
||||||
1 echo abc def
|
1 echo abc def
|
||||||
2 echo FOOBAR def
|
2 echo FOOBAR def
|
||||||
echo a new line
|
3 echo a new line
|
||||||
expected-stderr-pattern:
|
expected-stderr-pattern:
|
||||||
/^X*echo FOOBAR def\necho a new line\nX*$/
|
/^X*13\n32\necho FOOBAR def\necho a new line\nX*$/
|
||||||
---
|
---
|
||||||
name: IFS-space-1
|
name: IFS-space-1
|
||||||
description:
|
description:
|
||||||
|
|
Loading…
Reference in New Issue