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.
@robryk I don't believe there is a general getent utility in POSIX, just a getpwent system call, which the standard advises against using and recommends getpwuid instead.
@robryk I don't believe there is a general getent utility in POSIX, just a getpwent system call, which the standard advises against using and recommends getpwuid instead.