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.
Details
Details
- Reviewers
jilles - Commits
- rS299035: sh: Handle empty hostname and $PWD when building prompt
I set PS1='\h \W \$ ' and tested with an empty
hostname and $PS1.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable