Make sh(1) collapse $HOME into "~" in PS1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 21740 Build 21018: arc lint + arc unit
Event Timeline
| bin/sh/parser.c | ||
|---|---|---|
| 2050–2052 | Hm, I'm not much of a C lawyer, but I've used that syntax since... ever. What's wrong with it? | |
| bin/sh/parser.c | ||
|---|---|---|
| 2050–2052 | The syntax is fine, but I wondered whether ps[i + 1] is always within bounds. It turns out that it is because the i < PROMPTLEN - 1 check above. | |