ablog

不器用で落着きのない技術者のメモ

bash でビルトインコマンドを調べる

bash でビルトインコマンドがあるかどうか調べるには help を使えば良い。

$ which source
/usr/bin/which: no source in (/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin)
$ help source
source: source filename [arguments]
    Read and execute commands from FILENAME and return.  The pathnames
    in $PATH are used to find the directory containing FILENAME.  If any
    ARGUMENTS are supplied, they become the positional parameters when
    FILENAME is executed.