This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Making perl script running under bash cygwin


system returns 0. 'system(...) or die' should always die.  Does it run the
command first?
  Does this have anything to do with cygwin? i.e., does it perform
differently on other systems?

-----Original Message-----
From: Jorge Goncalvez [mailto:goncal11@col.bsf.alcatel.fr]
Sent: Thursday, December 06, 2001 10:57 AM
To: cygwin@cygwin.com
Subject: RE:Making perl script running under bash cygwin


Hi, I have this :
system("perl -i.orig -pe 's!/home/ftp!/!g' c:/cygwin/etc/passwd") or die;

And it dies always althought it works if I run it by Hand in the cygwin
bash.
Why?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]