develooper Front page | perl.perl5.porters | Postings from January 2004

[perl #25246] Re: message upon not finding the file

From:
Chris F.A. Johnson
Date:
January 24, 2004 19:49
Subject:
[perl #25246] Re: message upon not finding the file
Message ID:
rt-3.0.8-25246-72080.0.117586077852678@perl.org
# New Ticket Created by  "Chris F.A. Johnson" 
# Please include the string:  [perl #25246]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=25246 >


On Sat, 24 Jan 2004, Dan Jacobson wrote:

> perl doesn't say "perl:"
> $ perl a
> Can't open perl script "a": No such file or directory

    You can't remember what you typed on the previous line? :)

    Besides, what else would be looking for a "perl script"?

> bash doesn't say "bash", and says 'a' twice:
> $ bash a
> a: a: No such file or directory

    But if you didn't specify bash, it will tell you:

$ a
bash: a: command not found

> Both make it tough to figure out where the message came from, when
> seen amongst other messages.
>
> Only grep gets it right
> $ grep x a
> grep: a: No such file or directory

-- 
	Chris F.A. Johnson
	=================================================================
	cfaj@freeshell.org                      http://cfaj.freeshell.org



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About