deprecated has asked for the wisdom of the Perl Monks concerning the following question:
This is interesting since I can actually execute the perl binary, and I am a member of the perlusers group (whom own the perl directory). Here's more interesting stuff:# determine terminal D_TERM=`tty | perl -e 'print /tty/ ? "vt220" : "xterm-color"'` TERM=${D_TERM}
So there is something in the way that perl is interpreting the -e. This worries me. What would allow me to use heredoc perl as well as scripts but not -e?18:25:28 [alex : macachu : ~] [3] $ tty | perl -e 'print /tty/ ? "vt220" : "xterm-color"' Can't open perl script "-e": Permission denied 18:25:55 [alex : macachu : ~] [5] $ tty | perl <<EOP [ Continued ] > print /tty/ ? "vt220" : "xterm-color" [ Continued ] > EOP xterm-color18:26:30 [alex : macachu : ~] [6] $
freaked out,
brother dep.
ps. in contrast to some of my recent posts, this is my home box, and i am rootly here. :)
pps. i just also noticed that this will always print the latter since its evaluating $_ when I really want $_[0].
update: no, there are no perl aliases.
update2:well, merlyn rightly suggested i strace(1) or truss(1) it, and lo, /dev/null was not world readable. problem fixed.
--
Laziness, Impatience, Hubris, and Generosity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl '-e' permissions problem. (code)
by merlyn (Sage) on May 04, 2001 at 02:54 UTC | |
by chipmunk (Parson) on May 04, 2001 at 06:03 UTC | |
|
Re: Perl '-e' permissions problem. (code)
by chipmunk (Parson) on May 04, 2001 at 02:39 UTC | |
|
Re: Perl '-e' permissions problem. (code)
by MeowChow (Vicar) on May 04, 2001 at 09:08 UTC |