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 22341
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: option to show file:line everytime echo is called?
- Date: Tue, 10 Jan 2017 09:30:42 +0000
- Cc: Timothee Cour <timothee.cour2@xxxxxxxxx>
- Cms-type: 201P
- In-reply-to: <CANri+EzTiiKkfeDODR8PyBc=khLFONk738sFp7Vpo4uzwKMoXw@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
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20170110091259epcas5p14d052ee1dc7ebb5c4dd74e4aa02a8d18@epcas5p1.samsung.com> <CANri+EzTiiKkfeDODR8PyBc=khLFONk738sFp7Vpo4uzwKMoXw@mail.gmail.com>
On Mon, 9 Jan 2017 15:55:08 -0800
Timothee Cour <timothee.cour2@xxxxxxxxx> wrote:
> is there an option to show file:line everytime echo is called? eg:
>
> set -magic_echo_option
>
> echo myvr=$myvar #assuming this is at line 19
>
> #shows:
>
> /home/timothee/.zshrc:19 myvar=FOO
"set -x" does this in most shells.
You can change the information by altering the variable PS4, but it's
probably good enough.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author