Skip to content

Instantly share code, notes, and snippets.

@breiter
Created January 23, 2023 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breiter/f40b12e297fa21418275883401267fae to your computer and use it in GitHub Desktop.
Save breiter/f40b12e297fa21418275883401267fae to your computer and use it in GitHub Desktop.
change macOS /bin/sh from /bin/bash to /bin/dash
sh is a POSIX-compliant command interpreter (shell). It is implemented
by re-execing as either bash(1), dash(1), or zsh(1) as determined by the
symbolic link located at /private/var/select/sh. If
/private/var/select/sh does not exist or does not point to a valid shell,
sh will use one of the supported shells.
$ ls -l /private/var/select
total 0
lrwxr-xr-x 1 root wheel 9 Jan 23 09:47 sh -> /bin/dash
lrwxr-xr-x 1 root wheel 9 Dec 2 06:37 sh.ori -> /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment