Question for fellow Shell experts: Is there a POSIX-portable utility to find another user's home directory? I am looking for an alternative to ~user in scripts.
Notices by awb (awb@mastodon.sdf.org)
-
Embed this notice
awb (awb@mastodon.sdf.org)'s status on Sunday, 23-Jun-2024 01:12:21 JST awb -
Embed this notice
awb (awb@mastodon.sdf.org)'s status on Sunday, 23-Jun-2024 01:12:20 JST awb Just for reference again here with public visibility. POSIX.1-2017 says:
"User Database
There are no references in POSIX.1-2017 to a "passwd file" or a "group file", and there is no requirement that the group or passwd databases be kept in files containing editable text."