svn commit: r243130 - head/etc/root

Ulrich Spörlein uqs at FreeBSD.org
Sun Nov 18 15:46:15 UTC 2012


On Fri, 2012-11-16 at 04:25:35 +0000, Eitan Adler wrote:
> Author: eadler
> Date: Fri Nov 16 04:25:35 2012
> New Revision: 243130
> URL: http://svnweb.freebsd.org/changeset/base/243130
> 
> Log:
>   dot.login is supposed to be for bourne shell, not csh
>   
>   Pointyhat to: me
>   Approved by: cperciva (implicit)
> 
> Modified:
>   head/etc/root/dot.login
> 
> Modified: head/etc/root/dot.login
> ==============================================================================
> --- head/etc/root/dot.login	Fri Nov 16 03:33:34 2012	(r243129)
> +++ head/etc/root/dot.login	Fri Nov 16 04:25:35 2012	(r243130)
> @@ -6,4 +6,4 @@
>  #
>  
>  # Uncomment to display a random cookie each login:
> -# if ( -x /usr/games/fortune ) /usr/games/fortune -s
> +# [ -x /usr/games/fortune ] && /usr/games/fortune -s

Please add || true to that line, so that when it is enabled and
/usr/games/fortune doesn't exist or is not executable, the shell startup
doesn't return with $? set to something non-zero.

This is especially annoying if you have $? somewhere in your prompt.

Thanks
Uli


More information about the svn-src-all mailing list