svn commit: r190477 - head/share/skel

Ruslan Ermilov ru at FreeBSD.org
Fri Mar 27 14:13:15 PDT 2009


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


More information about the svn-src-all mailing list