Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 02:04:59 -0400
From:      Jan Beich <jbeich@tormail.org>
To:        Eitan Adler <eadler@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r243130 - head/etc/root
Message-ID:  <1TZFBU-0005S6-1s@internal.tormail.org>
In-Reply-To: <201211160425.qAG4PZ8I016575__14550.9199741811$1353039960$gmane$org@svn.freebsd.org> (Eitan Adler's message of "Fri, 16 Nov 2012 04:25:35 %2B0000 (UTC)")
References:  <201211160425.qAG4PZ8I016575__14550.9199741811$1353039960$gmane$org@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Eitan Adler <eadler@FreeBSD.org> writes:

> 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

Can you explain better or point to the reference? sh(1) mentions
~/.profile while csh(1) mentions ~/.login for commands executed
once per login.

Besides, dot.login is not installed WITHOUT_TCSH.

  # /usr/src/etc/Makefile
  .if ${MK_TCSH} != "no"
          cd ${.CURDIR}/root; \
              ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
                  dot.cshrc ${DESTDIR}/root/.cshrc; \
              ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
                  dot.login ${DESTDIR}/root/.login; \
              rm -f ${DESTDIR}/.cshrc; \
              ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
  .endif

>   
>   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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1TZFBU-0005S6-1s>