Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unshift
- X-seq: zsh-users 29748
- From: "Mark J. Reed" <markjreed@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: unshift
- Date: Mon, 1 Apr 2024 10:00:34 -0400
- Archived-at: <https://zsh.org/users/29748>
- In-reply-to: <CAA=-s3xvS7d5hv4tqwQ7_kXnWj58+X+rHdLfy_WK_g+_VRJTLQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <f1e0b92a-07b6-46c0-a2d6-6eeda828620b@eastlink.ca> <CAA=-s3xvS7d5hv4tqwQ7_kXnWj58+X+rHdLfy_WK_g+_VRJTLQ@mail.gmail.com>
... ah, I see, you want to just undo a shift. Well, AFAIK you can't do that without manually saving the value that was in $1 before the shift somewhere. Then you can use set to put it back.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author