From: sirjofri <sirjofri+ml-9front@sirjofri.de>
To: 9front@9front.org
Subject: Re: [9front] Re: /bin/"" use of rc -c instead of eval
Date: Sat, 6 Jul 2024 10:00:00 +0200 (GMT+02:00) [thread overview]
Message-ID: <217ca7f7-6c1d-4f6e-9c71-696c463ff24d@sirjofri.de> (raw)
In-Reply-To: <0FA3013289FC138D02F16A45F7F68FDA@smtp.pobox.com>
06.07.2024 03:49:46 Romano <me+unobe@fallglow.com>:
> cpu% pwd
> /
> cpu% "" cd /sys
> cpu% cd /sys/src
> cpu% pwd
> /sys/src
> cpu%
That's not how it's supposed to work though. Let me illustrate:
> cpu% pwd
> /sys/src
> cpu% "
> cpu% pwd
> cpu% ""
> cpu% pwd
> /sys/src
> cpu%
" only displays the last command while "" executes it. An optional argument can be used for filtering:
> cpu% pwd
> /sys/src
> cpu% cd /lib
> cpu% "" p
> cpu% pwd
> /lib
> cpu%
Note that I never tested cd'ing with "", which means a lot. It's probably not as useful in most cases, which makes sense if you think about it: you use cd to switch to another directory. When you're there, running it again is a no-op at best, or it fails.
sirjofri
next prev parent reply other threads:[~2024-07-06 8:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-05 22:23 [9front] " 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 [this message]
2024-07-06 9:41 ` Romano
2024-07-06 14:05 ` sirjofri
2024-07-06 14:08 ` sirjofri
2024-07-11 6:02 ` Romano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=217ca7f7-6c1d-4f6e-9c71-696c463ff24d@sirjofri.de \
--to=sirjofri+ml-9front@sirjofri.de \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).