macOS [1]
, :
which Cd which Cd which Cd () .
, , , , , - , .
, globbing ( ):
$ ls "$(which Cd)"*
/usr/bin/cd
Bash ( macOS) .
cd cd ( ).
cd , - .
, cd , ( $PATH), /usr/bin/cd.
/usr/bin/cd script, , , .
(Keith Thompson , , , script ).
Matt , script FreeBSD OSX ( FreeBSD), ( ):
POSIX spec:
, , , , , exec, POSIX.1-2008, , (env, find, nice, nohup, time, xargs).
, : () , ( ), , .
:
alias bg cd command false fc fg getopts jobs kill newgrp pwd read true umask unalias wait
. , .
, , POSIX, cd .
POSIX. , - cd - :
" cd , ." - http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html
, :
, kill , ( ), , PID.
, , , , ,
, POSIX :
alias bg cd command fc fg getopts jobs read umask unalias
Matt , ; , hash, POSIX, script.
[1] Dave Newton , MacOS HFS + (, , ). Dave , , macOS :
diskutil info / | grep -iq '^\s*Name.*case-sensitive*' && echo "case-SENSITIVE" || echo "case-INsensitive"