I tried using the whence command for some of the new built-ins in ksh-20140929 and was quite confused by what I saw as the following illustrates:
$ whence grep /usr/bin/grep $ : What? I thought grep was built in. $ whence -v grep grep is a shell builtin version of /usr/bin/grep $ : OK, so I thought it was a built-in version of AST grep. $ whence -a grep grep is a shell builtin version of /usr/bin/grep grep is a shell builtin version of /opt/ast/bin/grep $ : OK, there\'s the AST grep. But, if it\'s built-in, how can there be two $ : versions? Obviously $PATH is being applied here. $ whence -t grep file $ : Again, I thought it was built-in. Compare with the intrinsic built-in, $ : read. $ whence read read $ whence -v read read is a shell builtin $ whence -t read builtin Terrence Doyle _______________________________________________ ast-users mailing list ast-users@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-users