Date: Fri, 27 Mar 2009 21:13:14 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190477 - head/share/skel Message-ID: <200903272113.n2RLDEPS071483@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ru Date: Fri Mar 27 21:13:14 2009 New Revision: 190477 URL: http://svn.freebsd.org/changeset/base/190477 Log: Add explicit test so that non-existence of /usr/games/fortune doesn't affect command exit status. Modified: head/share/skel/dot.login head/share/skel/dot.profile Modified: head/share/skel/dot.login ============================================================================== --- head/share/skel/dot.login Fri Mar 27 20:40:17 2009 (r190476) +++ head/share/skel/dot.login Fri Mar 27 21:13:14 2009 (r190477) @@ -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 Modified: head/share/skel/dot.profile ============================================================================== --- head/share/skel/dot.profile Fri Mar 27 20:40:17 2009 (r190476) +++ head/share/skel/dot.profile Fri Mar 27 21:13:14 2009 (r190477) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903272113.n2RLDEPS071483>