epsilon-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build fails on MacOS/MachO: not ELF or COFF


From: Niobos
Subject: Re: build fails on MacOS/MachO: not ELF or COFF
Date: Tue, 12 May 2020 06:57:34 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Hi again,

On 12/05/2020 08:28, Luca Saiu wrote:
> Using your sed utility the command
>   sed 's@/$@\n@'
> introduces an 'n' character at the end of the line (in substitution of
> '/' characters from a previous phase), instead of the intended newline
> character.

Indeed it does:

$ <<<"foo/" sed -e 's/\/$/\n/'
foon


The man-page does say:

> A line can be split by substituting a newline character into it.  To
> specify a newline character in the replacement string, precede it
> with a backslash.
I first read that to mean '\n', but they may mean an actual newline:

$ <<<"foo/" sed -e 's@/$@\'$'\n''@'
foo
[empty line]

(using $'\n' to output a newline character)


Hope this helps,
N



reply via email to

[Prev in Thread] Current Thread [Next in Thread]