unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55204: 29.0.50; Improve quoting consistency in Eshell predicates/modifiers
@ 2022-05-01  4:37 Jim Porter
  2022-05-01  4:50 ` bug#55204: [PATCH] " Jim Porter
  0 siblings, 1 reply; 10+ messages in thread
From: Jim Porter @ 2022-05-01  4:37 UTC (permalink / raw)
  To: 55204

Currently, there are some inconsistencies with how string parameters 
should be quoted in Eshell argument predicates/modifiers (hereafter just 
"predicates"). First, the possible delimiters for a given predicate vary 
based on which predicate is used. Currently, the allowed delimiters are:

Any non-digit character:
   u (user)
   g (group)
   a (access time)
   m (modification time)
   c (change time)
Any character:
   :i (include)
   :x (exclude)
   :s (substitute)
"'" or "/":
   :j (join)
   :S (split)

Relatedly, although the string parameters are parsed so that you can 
escape the delimiter with "\", the backslash isn't actually removed 
before using the parameter. For example, from "emacs -Q --eval '(eshell)':

   ~ $ echo $(list "foo" "bar")(:j'\'')
   foo\'bar

That should print "foo'bar" instead. Similarly, when redirecting output 
to a buffer, escapes aren't properly removed. Again, from "emacs -Q 
--eval '(eshell)'":

   ~ $ echo hi > #<foo\>bar>
   ;; Writes to the buffer "foo\>bar"

Patch forthcoming shortly (just getting a bug number first).





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

end of thread, other threads:[~2022-05-01 23:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-01  4:37 bug#55204: 29.0.50; Improve quoting consistency in Eshell predicates/modifiers Jim Porter
2022-05-01  4:50 ` bug#55204: [PATCH] " Jim Porter
2022-05-01  8:40   ` bug#55204: " Lars Ingebrigtsen
2022-05-01 18:18     ` bug#55204: [PATCH v2] " Jim Porter
2022-05-01 18:22       ` Lars Ingebrigtsen
2022-05-01 18:36         ` Jim Porter
2022-05-01 18:40           ` Lars Ingebrigtsen
2022-05-01 18:41             ` Lars Ingebrigtsen
2022-05-01 18:42               ` Lars Ingebrigtsen
2022-05-01 23:55                 ` 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).