GNU bug report logs - #29351
Sed missing eval command

Previous Next

Package: sed;

Reported by: "Aeron.E. Wang" <aeron.e.wang <at> gmail.com>

Date: Sat, 18 Nov 2017 17:22:02 UTC

Severity: wishlist

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29351 in the body.
You can then email your comments to 29351 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-sed <at> gnu.org:
bug#29351; Package sed. (Sat, 18 Nov 2017 17:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Aeron.E. Wang" <aeron.e.wang <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-sed <at> gnu.org. (Sat, 18 Nov 2017 17:22:02 GMT) Full text and rfc822 format available.

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

From: "Aeron.E. Wang" <aeron.e.wang <at> gmail.com>
To: "bug-sed <at> gnu.org" <bug-sed <at> gnu.org>
Subject: Sed missing eval command
Date: Sat, 18 Nov 2017 17:21:34 +0000
[Message part 1 (text/plain, inline)]
Hello,

I use sed a lot. To make it more powerful, please add eval command.

With e and s///e, we can somehow eval shell command, isn’t nicer and easier
to eval sed syntax itself?

I would consider this as a great meta programming feature adding to sed.

Thanks.

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

Information forwarded to bug-sed <at> gnu.org:
bug#29351; Package sed. (Sat, 18 Nov 2017 19:58:01 GMT) Full text and rfc822 format available.

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

From: Assaf Gordon <assafgordon <at> gmail.com>
To: "Aeron.E. Wang" <aeron.e.wang <at> gmail.com>, 29351 <at> debbugs.gnu.org
Subject: Re: bug#29351: Sed missing eval command
Date: Sat, 18 Nov 2017 12:57:23 -0700
Hello,

On 2017-11-18 10:21 AM, Aeron.E. Wang wrote:
> I use sed a lot. To make it more powerful, please add eval command.
> 
> With e and s///e, we can somehow eval shell command, isn’t nicer and easier
> to eval sed syntax itself?

It would be easier to think of the "e" command as "execute" not "eval" -
it executes the command given (using the shell), and then reads the
output of the command and inserts it into the pattern space.

sed itself does not evaluate the command (or parses, or checks for valid 
syntax). It passes the command as-is to the shell.

> I would consider this as a great meta programming feature adding to sed.

This is certainly not a trivial feature, can you elaborate
and provide some concrete use cases where such feature would be useful?

regards,
 - assaf




Information forwarded to bug-sed <at> gnu.org:
bug#29351; Package sed. (Tue, 09 Oct 2018 11:30:02 GMT) Full text and rfc822 format available.

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

From: Assaf Gordon <assafgordon <at> gmail.com>
To: "Aeron.E. Wang" <aeron.e.wang <at> gmail.com>, 29351 <at> debbugs.gnu.org
Subject: Re: bug#29351: Sed missing eval command
Date: Tue, 9 Oct 2018 05:29:19 -0600
severity 29351 wishlist
tags 29351 moreinfo
close
stop

With no further comments for now, I'm marking this as "wishlist" item
and closing it. Further discussion can continue by replying to this
thread.

-assaf




Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 09 Oct 2018 11:30:03 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 09 Oct 2018 11:30:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 29351 <at> debbugs.gnu.org and "Aeron.E. Wang" <aeron.e.wang <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 29 Jun 2019 08:39:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Jul 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 267 days ago.

Previous Next


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