delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/25/18:10:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A70A4FC.B06A9531@yahoo.com>
Date: Thu, 25 Jan 2001 17:13:16 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Josh Schulte <jschulte AT equilibrium DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Bug In Mount?, Was [Odd/New Perl Behavior]
References: <67677D360C1FD411BB4000B0D02080418A5FDB AT eqexchange DOT equildom DOT equilibrium DOT com>

Josh Schulte wrote:
> 

I went to the trash a dredge up your script.

> 
> PERL SCRIPT
> -----------
> 
> #!/usr/local/bin/perl
> 
> @what = split(/\n/, `cat contents`);
> 
> foreach $line (@what)
> {
>         print "***>$line<-\n";
> }
> 

I changed the #! line to
#!/bin/env perl

> CONTENTS OF FILE
> ----------------
> 
> line one
> line two
> line three
> 

MY RESULTS:
-----------
***>line one<-
***>line two<-
***>line three<-

Could be that you have \r\n in your contents file.  Could be that you've
more than one version of perl installed.  Note, the current perl is
located at /usr/bin/perl not /usr/local/bin/perl.


Cheers,
Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019