summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-05-11 22:11:37 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-05-11 22:11:37 +0000
commit0c387e6a51840fe615c91e95a552ca9025d62d3b (patch)
treec47f38aeffb83b793e106772444235c24c266464 /lib/libc
parent4dc4a1749542ffb3325a4c24d3b96ce61d3e1531 (diff)
downloadFreeBSD-src-0c387e6a51840fe615c91e95a552ca9025d62d3b.zip
FreeBSD-src-0c387e6a51840fe615c91e95a552ca9025d62d3b.tar.gz
MFC r299035: sh: Handle empty hostname and $PWD when building prompt
If the hostname is empty and \h is used in $PS1, the remainder of the prompt following \h will be empty. Likewise for $PWD and \w. Fix it.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud