4 ms·
On most Unix flavors it is not built-in. The only shell I know that has "ls" built-in is BusyBox. And besides, I said in other places: "ls" has been "deprecate
by unscaled 3y ago
On most Unix flavors it is not built-in. The only shell I know that has "ls" built-in is BusyBox.
And besides, I said in other places: "ls" has been "deprecated by its maintainer" more times than exa, it's just that somebody has always forked it. GNU "ls" (the one in Linux) is a complete rewrite of the original shell, and it is annoyingly incompatible with the macOS fork of BSD ls.
- retrac 3y agoWorth noting that the Unix shell itself is not a "built-in". The kernel is agnostic about the user interface, which is left entirely to userspace programs to implement. (That was one of Unix's major innovations.)
- whimsicalism 3y agobuilt in to the shell, not the kernel lol
- pkulak 3y ago/bin/sh is a POSIX requirement though.
- rascul 3y agosh is, but not the location. > Applications should note that the standard PATH to the shell cannot be assumed to be either /bin/sh or /usr/bin/sh, and should be determined by interrogation of the PATH returned by getconf PATH, ensuring that the returned pathname is an absolute pathname and not a shell built-in. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html#tag_20_117_16 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/s... However, in my experience, I don't recall seeing any POSIX or POSIX like system that didn't have /bin/sh.
- pkulak 3y agoOh interesting. I assumed that since even Nix has a hard-coded /bin/sh, it must be required. Probably _essentially_ required.
- cb321 3y agoThere is also (at least): https://en.wikipedia.org/wiki/Stand-alone_shell https://en.wikipedia.org/wiki/Stand-alone_shell