Diff for generic readme and generic-build script

Alan Miles miles0201@cox.net
Wed Nov 19 01:04:00 GMT 2003


Igor,

Fixed the script patch as per your comment about -i. The `e [COMMAND]' is
still valid, as replacing it with 'r -' did not work.

Alan
-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha@cs.nyu.edu]
Sent: November 18, 2003 13:02
To: alan.miles@ieee.org
Cc: cygwin@cygwin.com
Subject: Re: Diff for generic readme and generic-build script


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: packaging_templates.diff
Type: application/octet-stream
Size: 4428 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031119/a174b2f9/attachment.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list