On Thu 31 Jul 2014 23:40:18 Linda Walsh wrote: > Chet Ramey wrote: > > type -P echo > > > > ls -l $(type -P echo) > > > > > > If you already have `echo' in the command hash table, type -P will return > > it, since that's what the shell will attempt to execute. > > --- > It's not in the hash table, but type -P still > returns the non-executable.
read what Chet said. type -P reflects what the shell will attempt, not what is useful. the fact that it's not usable is irrelevant. if you want to see if it's executable, use `[ -x ... ]`. -mike
signature.asc
Description: This is a digitally signed message part.