Mike Coleman wrote:
It would be nice if there was some really brief syntax for$(type -p somecommand)
p() {
local what=$(type -p $1)
shift 1
"$@" "$what"
}
p foobar ls -l
p foobar strings
...etc
also, 'complete -c p'
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job. -- The Hitchhiker's Guide to the
Galaxy (Douglas Adams)
