GNU bug report logs - #71119
Order of options bug: -iE vs. -Ei

Previous Next

Package: sed;

Reported by: Jakub Šebek <jakub.sebek.o <at> seznam.cz>

Date: Wed, 22 May 2024 14:49:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jakub Šebek <jakub.sebek.o <at> seznam.cz>
To: <bug-sed <at> gnu.org>
Subject: Order of options bug: -iE vs. -Ei 
Date: Wed, 22 May 2024 08:19:42 +0200 (CEST)
[Message part 1 (text/plain, inline)]
Hello,

I think I found a bug in sed (GNU sed) 4.8 or I have misunderstood its
syntax.


The following command

sed -iE 's/project-[0-9]+\.[0-9]+\.xsd/project-7.3.xsd/' project.xml

does not work how it is expected to. Just switching the arguments to -Ei 
makes it work normally. When -i is not supplied (print to stdout), it also
works correctly.

Thanks


Jakub Šebek

[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 23 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.