make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: $(shell) strips CRLF


From: Bryan Miller
Subject: RE: $(shell) strips CRLF
Date: Fri, 26 Apr 2002 08:54:46 -0700

Thanks Eli,

I have read the documentation and noted the entry regarding s/\n/ /g.  The GNU
Make manual is the most dogeared reference on my desk outside of Johan's Perl
Pocket Reference.  I guess my question could have been more carefully worded.  
Is
there a similar way to grab something from an OS call and not strip the new line
characters?  Paul says "no" so I will look for a solution outside of make.

Thanks much,
Bryan

> -----Original Message-----
> From: address@hidden [mailto:address@hidden Behalf Of Eli
> Zaretskii
> Sent: Friday, April 26, 2002 12:25 AM
> To: address@hidden
> Cc: address@hidden
> Subject: Re: $(shell) strips CRLF
>
>
> > From: "Bryan Miller" <address@hidden>
> > Date: Thu, 25 Apr 2002 12:51:40 -0700
> >
> > I have a makefile that performs a command like
> >
> > FOO := $(shell cat foo)
> >
> > where foo is a multiline ASCII text file.  For some reason the
> > $(shell) bit is stripping of the hex ODOA off the end of the lines
> > so FOO is just one long line.
>
> This is how $(shell) is supposed to behave, it's clearly documented
> in the node "Shell Function" of the Make manual.
>
> > Does anyone have any recommendations?
>
> Please explain why removing the newlines is a problem in your case.
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]