Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Comparing f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 11 Topic 11016 of 11531
Post > Topic >>

Re: Comparing files with regular expressions

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) May 3, 2008 at 09:40 PM

On Sat, May 3, 2008 at 5:57 PM, Jenda Krynicky <Jenda@[EMAIL PROTECTED]
> wrote:
> From: "Chas. Owens" <chas.owens@[EMAIL PROTECTED]
>
>
> > On Sat, May 3, 2008 at 4:42 PM, Jenda Krynicky <Jenda@[EMAIL PROTECTED]
>
wrote:
>  > snip
>  > > > [stuff about how two arg open is more dangerous than three arg
open
>  > >  And that means you were lucky. If the $file contained something
like
>  > >  "|rm -rf /" or "rm -rf / |" ...
>  > snip
>  >
>  > Nah, you would be lucky if that were the case: / isn't a valid POSIX
>  > filename character.
>
>  Why do you think it matters? And | is a valid POSIX filename
snip

Hmm, you are right.  I was an idiot there.  I was assuming the file
was coming off disk (but named in a way to cause problems for the
processing program), but $file could come from anywhere.

-- 
Chas. Owens
wonkden.net
The most im****tant skill a programmer can have is the ability to read.
 




 11 Posts in Topic:
Comparing files with regular expressions
rubinsztajn@[EMAIL PROTEC  2008-05-01 13:09:53 
Re: Comparing files with regular expressions
chas.owens@[EMAIL PROTECT  2008-05-02 07:41:47 
Re: Comparing files with regular expressions
rubinsztajn@[EMAIL PROTEC  2008-05-02 07:44:57 
Re: Comparing files with regular expressions
chas.owens@[EMAIL PROTECT  2008-05-02 19:56:47 
Re: Comparing files with regular expressions
Jenda@[EMAIL PROTECTED]   2008-05-03 22:42:10 
Re: Comparing files with regular expressions
chas.owens@[EMAIL PROTECT  2008-05-03 17:01:53 
Re: Comparing files with regular expressions
Jenda@[EMAIL PROTECTED]   2008-05-03 23:57:06 
Re: Comparing files with regular expressions
rob.dixon@[EMAIL PROTECTE  2008-05-04 01:08:19 
Re: Comparing files with regular expressions
chas.owens@[EMAIL PROTECT  2008-05-03 21:40:34 
Re: Comparing files with regular expressions
rubinsztajn@[EMAIL PROTEC  2008-05-05 09:28:52 
Re: Comparing files with regular expressions
rob.dixon@[EMAIL PROTECTE  2008-05-05 15:24:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:14:55 CDT 2008.