unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61310: Eshell modifying and running output regression
@ 2023-02-06  4:18 Morgan Smith
  2023-02-06  5:51 ` Jim Porter
  0 siblings, 1 reply; 7+ messages in thread
From: Morgan Smith @ 2023-02-06  4:18 UTC (permalink / raw)
  To: jporterbugs, 61310

Hello,

eshell allows you to modify the output of a command and run it.  It is a
beautiful thing.

Example:

$ ls
file.el
$

now go up and append "file" to the output and hit enter.

$ ls
file file.el
$ file file.el
color.el: Lisp/Scheme program, Unicode text, UTF-8 text
$


The ability is currently broken because "file.el" has the field property
set to "command-output" and the "file" command that I added has no
property field.  So currently the previous interaction would actually
yield:

$ ls
file file.el
$ file.el
file.el: command not found
$


This was broken in commit 558f04c39e036d2f681f72556627768d7bee9ab5.  Now
adding the field to eshell prompt makes a lot of sense and I like that.
I don't know much about fields but it looks like it is not necessary to
have a command-output field at all.  I propose we get rid of that.  If
you want to keep the field, can we make it sticky or something?  I just
want the above usecase fixed.


Thanks,

Morgan





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-24 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06  4:18 bug#61310: Eshell modifying and running output regression Morgan Smith
2023-02-06  5:51 ` Jim Porter
2023-02-06  5:59   ` Jim Porter
2023-02-07 18:20     ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-07 23:37       ` Jim Porter
2023-02-10  6:39         ` Jim Porter
2023-02-24 17:59           ` Jim Porter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).