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 22352
- From: Timothee Cour <timothee.cour2@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: option to show file:line everytime echo is called?
- Date: Tue, 10 Jan 2017 03:22:00 -0800
- Cc: zsh-users@xxxxxxx, Timothee Cour <timothee.cour2@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QvdunfhFyG/DcMfAJ7g9Q7ENKNNsTEENYlWA/gZjqwU=; b=DiNIoVOowm6TggBRrpCclVi6t8lKyrMQnxs1Uh8ufVgvIQ0GFf5OTg1vlBuxPHMyp/ 838URYgt/zGf6pMx2dUcdcZ2Ntr+ru97SRXncHgMGbswl6Fgqm7SxJ6p4Bh/JEOU1SkZ GlMCRuNwgvIWDiY69njbKB3+kZk+ZcgR97LIOFPMA4ZSlnp47GuAVdH8p/Ik8bS/X1lM oQKkCb+P5oNtK62T1OAYZYuytcn41mflLDjBpvGvxrcI4F6dlabNiytQfWzcurHx+xeW JFDV+Sbi2jmd1Vr+Fecm3nQjXD/0OpZyWfwC1vaj1oZNnR78FOZL0Zd01+FLKJ7BBybp 0biA==
- In-reply-to: <20170110093042.41111f8a@pwslap01u.europe.root.pri>
- 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>
- Sender: timothee.cour@xxxxxxxxx
Thanks; `set -x` is rather verbose, is there any other way to just alter
echo to show file:line (or similar) ?
On Tue, Jan 10, 2017 at 1:30 AM, Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:
> 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