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 21739 Build 21017: arc lint + arc unit
Event Timeline
bin/sh/parser.c | ||
---|---|---|
2049–2051 | 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 | ||
---|---|---|
2049–2051 | 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. |