4 ms·
> Many scripters who need wide compatibility of "which" fall back to the builtins `type` and `command` as they resolve any bash aliases set When wide compatibi
by turminal 6y ago
> Many scripters who need wide compatibility of "which" fall back to the builtins `type` and `command` as they resolve any bash aliases set
When wide compatibility is needed it is best to avoid bash specific solutions.
- account42 6y ago`command -v` is standard POSIX sh [0] [0] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c...