aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/test.txt
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-07-29 14:44:51 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-07-29 14:44:51 -0700
commit814472573960d051f842474293946791e1c42ef8 (patch)
treea016d8c508393746603de3cd56c9d3c722fd9f6d /doc_src/test.txt
parent52ae5f885e9c72b7b1477156bdb946fc78294052 (diff)
Fix bad example in docs for test -n $MANPATH
Fixes #1574
Diffstat (limited to 'doc_src/test.txt')
-rw-r--r--doc_src/test.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc_src/test.txt b/doc_src/test.txt
index 892848d1..809c3eaf 100644
--- a/doc_src/test.txt
+++ b/doc_src/test.txt
@@ -73,10 +73,12 @@ if test -d /tmp
end
</pre>
-If the variable \c MANPATH is defined and not empty, print the contents:
+If the variable \c MANPATH is defined and not empty, print the contents.
+(If \c MANPATH is not defined, then it will expand to zero arguments, unless
+quoted.)
<pre>
-if test -n $MANPATH
+if test -n "$MANPATH"
echo $MANPATH
end
</pre>