Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

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

standards/92640: A pristine /bin/sh does not set the PWD variable

>Number:         92640
>Category:       standards
>Synopsis:       A pristine /bin/sh does not set the PWD variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-standards
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 31 20:30:04 GMT 2006
>Originator:     Jens Schweikhardt
>Release:        FreeBSD 7.0-CURRENT i386
Digital Details
System: FreeBSD hal9000.schweikhardt.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Dec 27 16:26:59 CET 2005 toor@xxxxxxxxxxxxxxxxxxxxxxxx:/share/HEAD/obj/share/HEAD/src/sys/HAL9000 i386

	SUSv3 states in  2.5.3 Shell Variables:



    Set by the shell to be an absolute pathname of the current working
    directory, containing no components of type symbolic link, no
    components that are dot, and no components that are dot-dot when the
    shell is initialized. If an application sets or unsets the value of
    PWD, the behaviors of the cd and pwd utilities are unspecified."


$ env -i /bin/sh -c set
PS1='$ '
PS2='> '


Implement setting PWD.