Tag Info

New answers tagged


If your concern is about aliases, just do: [[ $(unalias -- "$cmd"; type -- "$cmd") = *builtin ]] ($(...) create a subshell environment, so unalias is only in effect there). If you're also concerned about functions, also run command unset -f -- "$cmd" before type.


I fear you maybe wasted your time implementing that; ksh93 supports the builtin command. E.g. with ksh version 93t 2008-11-04: $ builtin ...creates list of all builtins $ builtin jobs umask ...returns with exit code 0 $ builtin jobs time umask ...returns with exit code 1 and prints "builtin: time: not found" Note also that the builtin command is a ...

Top 50 recent answers are included