in reply to system call how-to
Not quite the same, is it? For basename in perl, see File::Basename. whatis doesn't work with the full path to a binary.
Since you invoke system with a list (as opposed to: with a string containing whitespace), no shell is involved, so /usr/bin/* is not even expanded.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|