NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/45390 CVS commit: src/bin/sh



The following reply was made to PR bin/45390; it has been noted by GNATS.

From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/45390 CVS commit: src/bin/sh
Date: Sun, 31 Oct 2021 02:12:01 +0000

 Module Name:	src
 Committed By:	kre
 Date:		Sun Oct 31 02:12:01 UTC 2021
 
 Modified Files:
 	src/bin/sh: cd.c
 
 Log Message:
 PR bin/45390 - fix for folly four
 
 In the pwd builtin, verify that curdir names '.' before
 simply printing it.   Never alter PWD or OLDPWD in the
 pwd command.
 
 Also while here, implement the (new: coming in POSIX, but has existed
 for a while in several other shells) -e option to cd (with -e, cd -P
 will exit(1) if the chdir() succeeds, but PWD cannot be discovered).
 
 cd now prints the directory name used (if different from that given,
 or cdprint is on) if interactive or (the new bit)in posix mode.
 
 Some additional/changed comments added, and a DEBUG mode trace call
 that was accidentally put inside an #if 0 block moved to where it
 can do some good.
 
 XXX pullup -9
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.50 -r1.51 src/bin/sh/cd.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index