Making perl script running under bash cygwin

Robinow, David drobinow@dayton.adroit.com
Thu Dec 6 13:33:00 GMT 2001


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/



More information about the Cygwin mailing list