Le vendredi 23 mars 2018 à 08:09:48, Bernhard Voelker a écrit :
On 03/23/2018 01:07 AM, Marcus Hüwe wrote:
On 2018-03-23 00:28:32 +0100, Bernhard Voelker
On 03/22/2018 10:39 AM, Sébastien
'sogal' Poher wrote:
sed -i 's|/usr/bin/env\
I've never seen '1' after the 's' command; what should that do?
It replaces the first match. For instance,
marcus@linux:~> echo -e "foobarbar\nfoobar" | sed -e
Ah, nice - found it in the manual now, thanks!
Still, I don't think this is needed for shebang replacement. Instead,
limiting the address range of the 's' action to line number 1 seems more
useful to me.
Indeed, both are valid but your approach might be safer. Thanks.
But my question was less about the 'sed' syntax and more about 'does it
correct to you to use sed in the %install section of a specfile' ? :)
Sébastien 'sogal' Poher
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner(a)opensuse.org