zsh-workers
 help / color / mirror / code / Atom feed
From: Tim Eliseo <tre-zsh@crushedhat.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] Add option like tcsh's dextract
Date: Fri, 4 Aug 2023 09:47:03 -0700	[thread overview]
Message-ID: <ea9c0f62-a4a1-08e8-fc41-8792cc3b75d8@crushedhat.com> (raw)
In-Reply-To: <3a8e90b4-def1-bada-c118-68ddc1245972@crushedhat.com>

I posted a patch back in 51958 about which I haven’t seen any new 
comments or commit activity, making me think it got forgotten. Does it 
need further clarification? Maybe the one comment it did receive, which 
inferred that it was redundant, caused it to be dropped by the people 
who do merges? As my sample workaround script illustrates (which, BTW, I 
don’t intend as part of the patch), achieving the original tcsh behavior 
without a builtin option is non-trivial. The takeaway from my 
long-winded introduction is that sometimes it can be small things that 
prevent people from jumping over to zsh.

My previously posted patch still merges cleanly with current master. If 
it was actually just still in the merge queue and not forgotten, and I 
didn't wait long enough, I apologize for the bump.

Tim

On 2023-07-18 02:54:11, Tim Eliseo wrote:
> Hi all!
>
> This is my first post to the group. I’d been using tcsh as an 
> interactive shell since way back when it was still cool, before zsh or 
> bash even existed. Zsh is the first shell that’s a worthy successor. 
> One of the small things that kept me from jumping to bash (along with 
> everyone else in the Linux world) is that it doesn’t have a proper 
> implementation of asynchronous notify of job completion (-b), which 
> zsh does. Another thing that bugged me about bash was that there is no 
> clean way to emulate tcsh’s dextract option, which rearranges the 
> pushd stack differently. I eventually discovered that zsh can do the 
> basic function through the cd/chdir builtin with the auto_pushd option 
> set, but coding a pushd replacement function was complicated to get 
> right for all option cases (see attached).
>
> However, I found that adding this pushd mode to zsh natively was 
> trivial (simply testing for the new option in one place), and I’m 
> still baffled why it wasn’t included a long time ago while someone was 
> looking for ways to increase compatibility with other shells. The 
> attached patch (based on the current master branch) does just that, 
> and I hope you see fit to merge it into the codebase. I believe I’ve 
> done all the appropriate option handling, documentation, and unit test 
> to make this painless. I didn’t write a ChangeLog entry since I wasn’t 
> sure of the appropriate format, or how to derive the number. (Is that 
> an SVN revision number?)
>
> Tim
>



  parent reply	other threads:[~2023-08-04 16:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-18  9:54 Tim Eliseo
2023-07-18 15:17 ` Mikael Magnusson
2023-08-04 16:47 ` Tim Eliseo [this message]
2023-08-04 16:58   ` Mikael Magnusson
     [not found]     ` <ee258794-761e-8f48-01d2-f0db6d8b6dc7@crushedhat.com>
2023-08-04 18:08       ` Mikael Magnusson
2023-08-05 23:48   ` Bart Schaefer
2023-08-08 22:13     ` Tim Eliseo
2023-08-09  8:50       ` Peter Stephenson
2023-08-09 13:16       ` Mikael Magnusson
2023-08-09 14:19         ` Tim Eliseo
2023-08-09 16:24           ` Mikael Magnusson
2023-08-09 17:25             ` Bart Schaefer
2023-08-09 23:27               ` Tim Eliseo
2023-08-12  3:42                 ` Bart Schaefer
2023-08-09 22:49             ` Tim Eliseo

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=ea9c0f62-a4a1-08e8-fc41-8792cc3b75d8@crushedhat.com \
    --to=tre-zsh@crushedhat.com \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).