delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/31/17:36:34

From: ebachalo AT cygnus DOT com (Eric Bachalo)
Subject: Re: -@file
31 Mar 1998 17:36:34 -0800 :
Message-ID: <3.0.5.32.19980331104110.00b1c9d0.cygnus.cygwin32.developers@pop.cygnus.com>
References: <199803311456 DOT JAA26102 AT subrogation DOT cygnus DOT com>
Mime-Version: 1.0
To: Ian Lance Taylor <ian AT cygnus DOT com>
Cc: cygwin32-developers AT cygnus DOT com, fgeers AT cygnus DOT com

At 09:56 AM 3/31/98 -0500, Ian Lance Taylor wrote:
>   Date: Fri, 27 Mar 1998 16:56:46 -0800
>   From: Eric Bachalo <ebachalo AT cygnus DOT com>
>
>   The command 'echo -@foo' will echo the contents of the file foo to the
screen.
>
>I presume that this is not literally true.  That is
>    cat foo
>and
>    echo -@foo
>should not produce identical output.  I would expect the latter ot
>compress unquoted strings of spaces, tabs, and newlines into a single
>space.  In particular, barring quoting, I would expect it to always
>print only a single newline.
>
>Ian

Very good point Ian.  I failed to mention that all carriage returns and new
lines ('\r' and '\n') in file foo are replaced with spaces.  I did not do
any compression.  Sorry.  Didn't think of it.  Would not be hard for me to
add if needed.


Best Regards,

Eric Bachalo

- Raw text -


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