delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/18/14:01:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 18 Nov 2003 14:01:33 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: alan DOT miles AT ieee DOT org
cc: cygwin AT cygwin DOT com
Subject: Re: Diff for generic readme and generic-build script
In-Reply-To: <JLEBIHHBMBHBAFPAJLEFIEOHELAA.miles0201@cox.net>
Message-ID: <Pine.GSO.4.56.0311181356530.8212@slinky.cs.nyu.edu>
References: <JLEBIHHBMBHBAFPAJLEFIEOHELAA DOT miles0201 AT cox DOT net>
Importance: Normal
MIME-Version: 1.0

On Mon, 17 Nov 2003, Alan Miles wrote:

> [snip]
> 7/ Note: the -i option to sed (quoting the man page for sed):
>
>    -i[suffix], --in-place[=suffix]
>        edit files in place (makes backup if extension supplied)
>
>    Extended sed command:
>
>    `e [COMMAND]'
>      This command allows one to pipe input from a shell command into
>      pattern space.  Without parameters, the `e' command executes the
>      command that is found in pattern space and replaces the pattern
>      space with the output; a trailing new-line is suppressed.
>
>      If a parameter is specified, instead, the `e' command interprets
>      it as a command and sends it to the output stream (like `r' does).
>      The command can run across multiple lines, all but the last
>      ending with a back-slash.
>
>      In both cases, the results are undefined if the command to be
>      executed contains a NUL character.
>
>    These together constitute the operation of the modifications.

Note: the -i option to sed is buggy, as it will go into an infinite loop
if /tmp is not writable (which does happen occasionally with Cygwin).
It's better to use explicit redirection and renaming instead.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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