From 0c9e0226e3e1796fea193776e90b6506805173fb Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 27 Mar 2009 21:13:14 +0000 Subject: [PATCH] Add explicit test so that non-existence of /usr/games/fortune doesn't affect command exit status. --- share/skel/dot.login | 2 +- share/skel/dot.profile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/skel/dot.login b/share/skel/dot.login index 894021a83794..b8688f98446e 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 2e1ca0cd2220..3a8bd3eb5d70 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