Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Silly errors repeated from time to time

by joe++ (Friar)
on Oct 14, 2002 at 10:57 UTC ( #205029=note: print w/replies, xml ) Need Help??

in reply to Silly errors repeated from time to time

Familiar problem, but I learnt to cope with it in a very early stage the hard way...

I named a Perl script plainly "test" and thought to execute is by typing "test" in a bourne shell. It was only one hour later that I learnt about the shell builtin test and to always prefix a local script/program name with a dot-slash, like "./test" or whatever. On a side note, on unix, user root shouldn't even have the working directory in its PATH for security reasons...

By always explicitly invoking the command in the (current) directory you shouldn't get too many surprises IMHO (and yes, using a real version management system is the way to go - familiarising oneself with the somewhat arkane CVS syntax pays very much in the longer run).

Cheers, Joe

  • Comment on Re: Silly errors repeated from time to time

Replies are listed 'Best First'.
Re: Silly errors repeated from time to time
by Abigail-II (Bishop) on Oct 14, 2002 at 11:39 UTC
    IMO, it's not just root who shouldn't have "." in their PATH.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://205029]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-12-02 07:29 GMT
Find Nodes?
    Voting Booth?