Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] cd: Append 2nd argument to CWD if 1st is empty
- X-seq: zsh-workers 52348
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Julian Prein <druckdev@xxxxxxxxxxxxxx>
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] cd: Append 2nd argument to CWD if 1st is empty
- Date: Fri, 1 Dec 2023 10:21:36 +0100
- Archived-at: <https://zsh.org/workers/52348>
- In-reply-to: <IZyXHgegIr8a18HfmW1WE7S2UYguBiREgTX0rv0u4WXrJO92IhaP9PVRDvoiEan85dZZL6Gvi4dQeSAgTAiFWitlFReFgse2lMJvCDcsbZM=@protonmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <IZyXHgegIr8a18HfmW1WE7S2UYguBiREgTX0rv0u4WXrJO92IhaP9PVRDvoiEan85dZZL6Gvi4dQeSAgTAiFWitlFReFgse2lMJvCDcsbZM=@protonmail.com>
On Fri, Dec 1, 2023 at 4:12 AM Julian Prein <druckdev@xxxxxxxxxxxxxx> wrote:
>
> Currently when old is empty, cd will prepend new to the name of the
> current directory. As this has very limited use cases (e.g.
> `cd '' /proc` when in `/sys/...`), change the behaviour of cd to
> **append** new instead.
What is the use case of the new behavior?
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author