diff options
Diffstat (limited to 'tests/history.right')
-rw-r--r-- | tests/history.right | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/tests/history.right b/tests/history.right index 556a312..cb58f98 100644 --- a/tests/history.right +++ b/tests/history.right @@ -1,8 +1,8 @@ ./history.tests: line 4: history: -x: invalid option -history: usage: history [-c] [-d offset] [n] or history -awrn [filename] or history -ps arg [arg...] +history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...] ./history.tests: line 6: history: cannot use more than one of -anrw ./history.tests: line 9: fc: -v: invalid option -fc: usage: fc [-e ename] [-nlr] [first] [last] or fc -s [pat=rep] [cmd] +fc: usage: fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command] 1 for i in one two three; do echo $i; done 2 /bin/sh -c 'echo this is $0' 3 ls @@ -108,4 +108,39 @@ xx xb xc echo 44 48 4c 44 48 4c ./history.tests: line 90: fc: no command found +aa +bb +cc +echo cc +echo cc +cc +aa +bb +cc +echo cc +echo cc +cc 1 +one +two +three + 1 cat <<! +one +two +three +! + + 2 history +cat <<! +one +two +three +! + +one +two +three +4.1 +echo ${BASH_VERSION%\.*} +4.1 + echo ${BASH_VERSION%\.*} |