I want to check if a command is builtin or a separate program.
bash I use:
$ type <command>
What is the equivalent in
csh has "which" (which cannot detect sh aliases)
In my environment using tcsh
~ (101) alias cd cd !* ; ls q exit v cursor; xhost + ;resize -s 40 80; unsetenv TERMCAP; screen xl xlock -nolock -random y Xearth; run xclock -geometry +1100+0; run nice xload -geometry +950+0 -update 3 ~ (102) which y y: aliased to Xearth; run xclock -geometry +1100+0; run nice xload -geometry +950+0 -update 3 ~ (103) type which type: Command not found. ~ (104) which which which: shell built-in command. ~ (105) which ls /bin/ls ~ (106)
Simply trying this shows:
$ csh % type type type is a shell builtin
So.. yes, you can?