aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-16 15:19:07 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-16 15:19:07 +0800
commit3cbace98a76ba35af88f0a9234a7c6ebad10d68c (patch)
treeb6ee8adcf6d1b6de3ad777b60638394c0434a085 /tests
parentc7aca5cc35d0f08d03ea05a4a8609e3f8239944b (diff)
'echo -' should output a dash instead of treating it as options
Fixes #1459
Diffstat (limited to 'tests')
-rw-r--r--tests/test1.in1
-rw-r--r--tests/test1.out1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/test1.in b/tests/test1.in
index 529baea1..4de8d6b1 100644
--- a/tests/test1.in
+++ b/tests/test1.in
@@ -116,6 +116,7 @@ echo -e 'abc\121def'
echo -e 'abc\1212def'
echo -e 'abc\cdef' # won't output a newline!
echo ''
+echo -
echo -e Catch your breath
diff --git a/tests/test1.out b/tests/test1.out
index 893e0464..85a6d225 100644
--- a/tests/test1.out
+++ b/tests/test1.out
@@ -33,6 +33,7 @@ abc!def
abcQdef
abcQ2def
abc
+-
Catch your breath
abc!def
abc!1def