summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2009-03-27 21:13:14 +0000
committerru <ru@FreeBSD.org>2009-03-27 21:13:14 +0000
commit3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9 (patch)
tree4c373cd6a8806283878092d59e7d5e75bc10d3e1 /share
parent8ef6e46753d8b63d8439751bc69439dc03c7fb5c (diff)
downloadFreeBSD-src-3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9.zip
FreeBSD-src-3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9.tar.gz
Add explicit test so that non-existence of /usr/games/fortune
doesn't affect command exit status.
Diffstat (limited to 'share')
-rw-r--r--share/skel/dot.login2
-rw-r--r--share/skel/dot.profile2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/skel/dot.login b/share/skel/dot.login
index 894021a..b8688f9 100644
--- a/share/skel/dot.login
+++ b/share/skel/dot.login
@@ -5,4 +5,4 @@
# see also csh(1), environ(7).
#
-[ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips
+if ( -x /usr/games/fortune ) /usr/games/fortune freebsd-tips
diff --git a/share/skel/dot.profile b/share/skel/dot.profile
index 2e1ca0c..3a8bd3e 100644
--- a/share/skel/dot.profile
+++ b/share/skel/dot.profile
@@ -21,4 +21,4 @@ PAGER=more; export PAGER
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
-[ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips
+if [ -x /usr/games/fortune ] ; then /usr/games/fortune freebsd-tips ; fi
OpenPOWER on IntegriCloud