From: "Lawrence Velázquez" <vq@larryv.me>
To: "Denys Vlasenko" <dvlasenk@redhat.com>
Cc: "Harald van Dijk" <harald@gigawatt.nl>, dash@vger.kernel.org
Subject: Re: Are there users of ash's "pathopts"? Do other shells have such a thing?
Date: Sat, 01 Apr 2023 17:35:32 -0400 [thread overview]
Message-ID: <edae6167-59db-46bf-b655-76b9dc26ce96@app.fastmail.com> (raw)
In-Reply-To: <e57e26c4-a37f-37e8-90bf-6f19295eab59@redhat.com>
On Sat, Apr 1, 2023, at 4:49 PM, Denys Vlasenko wrote:
> Just now, I learned that CDPATH is a thing... oh god.
> Yet another danger of subtle bugs in scripts when one
> of their innocuous "mkdir subdir; cd subdir" suddenly
> cd's somewhere else...
> ..and this "feature" seems to be in bash too,
> and who knows where else.
At a minimum:
- traditional Bourne shells since 1983 [1]
- POSIX [2]
- busybox
- ksh and friends
- yash
- zsh
[1]: https://www.in-ulm.de/~mascheck/bourne/#svr1
[2]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html
--
vq
next prev parent reply other threads:[~2023-04-01 21:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-01 18:46 Are there users of ash's "pathopts"? Do other shells have such a thing? Denys Vlasenko
2023-04-01 19:13 ` Harald van Dijk
2023-04-01 20:49 ` Denys Vlasenko
2023-04-01 21:35 ` Lawrence Velázquez [this message]
2023-04-02 17:25 ` Sven Mascheck
2023-04-03 9:35 ` Denys Vlasenko
2023-04-03 11:35 ` Harald van Dijk
2023-04-03 11:54 ` Denys Vlasenko
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=edae6167-59db-46bf-b655-76b9dc26ce96@app.fastmail.com \
--to=vq@larryv.me \
--cc=dash@vger.kernel.org \
--cc=dvlasenk@redhat.com \
--cc=harald@gigawatt.nl \
/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