Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: What's the equivalent of ${BASH_SOURCE[0]}?
- X-seq: zsh-users 29739
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: What's the equivalent of ${BASH_SOURCE[0]}?
- Date: Sat, 16 Mar 2024 10:43:40 +0100
- Archived-at: <https://zsh.org/users/29739>
- In-reply-to: <CAMP44s0nmNB7zXorO1Vh7sPGQqATv46p8+c7Pn7_0r-1FAPNqw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAMP44s3JuCYoNYQEgVUMwPLwGb7AJSzFF=KLe00v0g_q0z1Kaw@mail.gmail.com> <CAH+w=7YedsQCk56Bvygc_NvsByDJf_MWK57XZYEoO4Xtx1eXww@mail.gmail.com> <CAMP44s0nmNB7zXorO1Vh7sPGQqATv46p8+c7Pn7_0r-1FAPNqw@mail.gmail.com>
On Fri, Mar 15, 2024 at 5:29 PM Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> Actually I realized that it's ${(%):-%x} what I'm looking for, since
> that is the best equivalent for ${BASH_SOURCE[0]}.
>
> According to StackOverflow there are no better options [1].
Better in what sense? What are the shortfalls of ${(%):-%x} from your
point of view?
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author