NetBSD-Bugs archive

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

standards/40639: /bin/sh doesn't expand PS1

>Number:         40639
>Category:       standards
>Synopsis:       /bin/sh doesn't expand PS1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 14 08:50:00 +0000 2009
>Originator:     Alan Barrett
>Release:        NetBSD 5.99.7
Not much
System: NetBSD 5.99.7  i386
        According to SUSv3 
        the shell should expand the value of PS1 before printing it
        on every prompt.  NetBSD's /bin/sh does not do that.
        It actually does this:

        $ ( cd /tmp ; ENV='' /bin/sh -i )
        $ PS1='${PWD} $ '
        ${PWD} $ 

        It should do this instead:

        $ ( cd /tmp ; ENV='' /bin/sh -i )
        $ PS1='${PWD} $ '
        /tmp $ 

        Expand PS1 when printing the prompt.

Home | Main Index | Thread Index | Old Index