John Keeping writes:
> So the portable way to do it is:
>
> sed "s/^From:/$header: ex...@address.com\
> From:/" cover-to-edit.patch >"$cover" &&
That wouldn't work as \ is removed in double quotes. You
either need to double the backslash or put it in single quotes.
Andreas.
--
Andreas
John Keeping writes:
> Note that quoted section of POSIX says "embedded in the pattern space";
> under the description of the "s" command, it says:
>
> The replacement string shall be scanned from beginning to end.
> [...]
> The meaning of a immediately followed by any
>
Junio C Hamano writes:
> Torsten Bögershausen writes:
>
>> t9001 used a '\n' in a sed expression to split one line into two lines.
>> Some versions of sed simply ignore the '\' before the 'n', treating
>> '\n' as 'n'.
>>
>> As the test already requires perl as a prerequisite, use perl instead of
On Wed, Jun 04, 2014 at 10:42:46AM -0700, Junio C Hamano wrote:
> Torsten Bögershausen writes:
>
> > t9001 used a '\n' in a sed expression to split one line into two lines.
> > Some versions of sed simply ignore the '\' before the 'n', treating
> > '\n' as 'n'.
> >
> > As the test already require
On 2014-06-04 20.13, Junio C Hamano wrote:
> Junio C Hamano writes:
>
>> Torsten Bögershausen writes:
>>
>>> t9001 used a '\n' in a sed expression to split one line into two lines.
>>> Some versions of sed simply ignore the '\' before the 'n', treating
>>> '\n' as 'n'.
>>>
>>> As the test alread
Junio C Hamano writes:
> Torsten Bögershausen writes:
>
>> t9001 used a '\n' in a sed expression to split one line into two lines.
>> Some versions of sed simply ignore the '\' before the 'n', treating
>> '\n' as 'n'.
>>
>> As the test already requires perl as a prerequisite, use perl instead of
Torsten Bögershausen writes:
> t9001 used a '\n' in a sed expression to split one line into two lines.
> Some versions of sed simply ignore the '\' before the 'n', treating
> '\n' as 'n'.
>
> As the test already requires perl as a prerequisite, use perl instead of sed.
>
> Signed-off-by: Torsten
t9001 used a '\n' in a sed expression to split one line into two lines.
Some versions of sed simply ignore the '\' before the 'n', treating
'\n' as 'n'.
As the test already requires perl as a prerequisite, use perl instead of sed.
Signed-off-by: Torsten Bögershausen
---
t/t9001-send-email.sh |
8 matches
Mail list logo