Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: What's the equivalent of ${BASH_SOURCE[0]}?



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