Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autocd in scripts
- X-seq: zsh-workers 33651
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: autocd in scripts
- Date: Sat, 8 Nov 2014 20:28:36 +0000
- In-reply-to: <CAH+w=7YvTQ3jUJFVdNjV0vQfXXXsZ4NqZ+o8dYxfrCkx0dAkRg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKjp4B68eGXoVyb0P=qj9wKAG4QvUS3rQeB=ut0jj_i+gTh6ZQ@mail.gmail.com> <CAH+w=7YvTQ3jUJFVdNjV0vQfXXXsZ4NqZ+o8dYxfrCkx0dAkRg@mail.gmail.com>
On Sat, 8 Nov 2014 11:04:42 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> The SHINSTDIN test has been part of autocd farther back than any
> changelog or source control can resolve, so it's probably related to
> cd printing out the name of the new directory whenever an autocd takes
> place, and the assumption is that this would not be wanted when the
> input is from a script file (but simply changing silently would also
> be bad).
>
> This probably should be documented somehow. Suggested wording, anyone?
SHINSTDIN seems to be fairly fully documented, I suppose we just refer
to it from the AUTOCD entry.
I'm torn between wondering whether we need to be writing a style guide
to scripting or simply standing over users while they write out 100
times "I must not use confusing interactive features in scripts".
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author