Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: option to show file:line everytime echo is called?
- X-seq: zsh-users 22375
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Timothee Cour <timothee.cour2@xxxxxxxxx>
- Subject: Re: option to show file:line everytime echo is called?
- Date: Sat, 14 Jan 2017 08:58:15 -0800 (PST)
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <CAM4j=kPc6XtoZesc+ysGOfa64LsuBL6BbKdTK3mjU=4vOpcjQQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20170110091259epcas5p14d052ee1dc7ebb5c4dd74e4aa02a8d18@epcas5p1.samsung.com> <CANri+EzTiiKkfeDODR8PyBc=khLFONk738sFp7Vpo4uzwKMoXw@mail.gmail.com> <20170110093042.41111f8a@pwslap01u.europe.root.pri> <CANri+EwT3h8MkpeKSd-9_QLp9S=TEibmSgjS3r9mv0jY46dQAw__39244.7733007886$1484262699$gmane$org@mail.gmail.com> <20170113035730.GA1812@fujitsu.shahaf.local2> <alpine.LRH.2.00.1701122304500.4560@toltec.zanshin.com> <alpine.LRH.2.00.1701130005240.4560@toltec.zanshin.com> <CAM4j=kPc6XtoZesc+ysGOfa64LsuBL6BbKdTK3mjU=4vOpcjQQ@mail.gmail.com>
- Reply-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
On Fri, 13 Jan 2017, Timothee Cour wrote:
> turns out Anthony Heading's solution works great (thanks!): alias
> echo2='echo ${(%):-%x:%I}'
>
> any downside compared to Daniel Shahaf's solution i haven't seen yet?
Use of $funcfiletrace (like in my follow-up to Daniel) will show you
not just the file:line where the echo was called, but also the file:line
where the caller of echo was called, and so on all the way up to the
top-level execution loop e.g. the interactive command line.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author