You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
coolaj86
changed the title
Simple refactor: replace whoami with id -u -n for POSIX-compliance
Simple refactor: find-and-replace whoami with id -u -n in scripts
Jun 5, 2024
HacDan
added a commit
to HacDan/webi-installers
that referenced
this issue
Jun 5, 2024
whoami
is generally available on all Unix-y systems, butid -u -n
is the POSIX standard with guaranteed behavior.This is literally as simple as doing a find-and-replace across the repo (such as with
sd
, or any code editor tool).Finding the files with
whoami
:For reference: https://pubs.opengroup.org/onlinepubs/009695399/utilities/id.html
The text was updated successfully, but these errors were encountered: