Re: [PATCH] t5540-http-push.sh: avoid non-portable grep -P
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 26, 2009, 23:58 UTC
- Message-ID
- <alpine.DEB.1.00.0902270056270.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <wRrDhWKagbvPUgIXKKh8JIhASl974j2rrgyuh-WEzRJFcXywywNupg@cipher.nrlssc.navy.mil>
Hi,
On Thu, 26 Feb 2009, Brandon Casey wrote:
Show 5 quoted lines
> sed -e 'script' input-file > > rather than > > sed -e 'script' < input-file
What should make the former more preferable to the latter?
Especially given that the latter way is preferable with other commands (at least as far as our test suite is concerned), such as grep, because you do not get the file name as part of the result?
And especially given that sed means _stream_ editor, not file editor?
Ciao, Dscho