9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] /bin/"" use of rc -c instead of eval
@ 2024-07-05 22:23 Romano
  2024-07-05 23:14 ` Stanley Lieber
  2024-07-05 23:49 ` [9front] " Anthony Martin
  0 siblings, 2 replies; 9+ messages in thread
From: Romano @ 2024-07-05 22:23 UTC (permalink / raw)
  To: 9front

I use " and "" to review previous commands and execute them, and
I was puzzled when a previous 'cd' command didn't work. I
suspected it might be perhaps to 'cd' being a built-in, and
looking at the source code for "" my suspicion was confirmed. The
last line that executes the command is: rc -c $"_x

Any reason why this isn't using eval instead so that rc built-ins
work (eval $"_x)

P.S. There doesn't appear to be any man page for "" or ", and lookman
doesn't support "" either:

cpu% lookman ""
usage: lookman key ...
cpu% lookman '""'
usage: lookman key ...
cpu%

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

end of thread, other threads:[~2024-07-11  6:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-05 22:23 [9front] /bin/"" use of rc -c instead of eval Romano
2024-07-05 23:14 ` Stanley Lieber
2024-07-05 23:49 ` [9front] " Anthony Martin
2024-07-06  1:48   ` Romano
2024-07-06  8:00     ` sirjofri
2024-07-06  9:41       ` Romano
2024-07-06 14:05         ` sirjofri
2024-07-06 14:08         ` sirjofri
2024-07-11  6:02           ` Romano

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 NNTP newsgroup(s).