in reply to Re: system call how-to
in thread system call how-to
as long as one-liner is concerned. The chdir functions takes higher precedence than the logical OR (||) operator. The truth is, I added the shift || part later on the textbox without retesting. My fault, my fault....perl -e 'chdir (shift || "/usr/bin"); system whatis => <*>'
shmem privately messaged me correcting my answer, and suggested me to have some coffee. But I think I need more than that, perhaps taking a fresh bath :D Thanks, shmem :-)
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
|---|