These options may not be combined with any other options and print the
current or specified user's home directory and shell respectively.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Other than needlessly libxo-izing this (-P serves 99% of the need there), I think you've done almost all you can to modernize it. Though the (void) casts to fprintf and the like do look a bit archaic. :)
Comment Actions
The motivation here was seeing ports use eval echo ~$user to figure out a user's home directory... “surely there's got to be a better way”