Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2010 14:35:46 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh cd.c cd.h main.c src/tools/regression/bin/sh/parameters pwd2.0
Message-ID:  <201004171438.o3HEcvwn036237@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2010-04-17 14:35:46 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               cd.c cd.h main.c 
  Added files:
    tools/regression/bin/sh/parameters pwd2.0 
  Log:
  SVN rev 206759 on 2010-04-17 14:35:46Z by jilles
  
  sh: On startup of the shell, use PWD from the environment if it is valid.
  Unset PWD if it is incorrect and no value for it can be determined.
  This preserves the logical current directory across shell invocations.
  
  Example (assuming /home is a symlink):
  $ cd
  $ pwd
  /home/foo
  $ sh
  $ pwd
  /home/foo
  
  Formerly the second pwd would show the physical path (symlinks resolved).
  
  Revision  Changes    Path
  1.40      +22 -5     src/bin/sh/cd.c
  1.8       +1 -1      src/bin/sh/cd.h
  1.38      +1 -4      src/bin/sh/main.c
  1.1       +24 -0     src/tools/regression/bin/sh/parameters/pwd2.0 (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004171438.o3HEcvwn036237>