vangyzen 0520b41811 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.

Reviewed by:	jilles
MFC after:	1 week
Sponsored by:	Dell Inc.
Differential Revision:	https://reviews.freebsd.org/D6188
2016-05-04 02:06:46 +00:00
..
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-04-04 23:55:32 +00:00
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-03-10 21:16:01 +00:00
MFH
2016-03-10 21:16:01 +00:00
2016-04-19 00:40:43 +00:00
MFH
2016-04-12 17:00:13 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-10 21:16:01 +00:00
2016-04-19 00:38:07 +00:00