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 22354
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Timothee Cour <timothee.cour2@xxxxxxxxx>
- Subject: Re: option to show file:line everytime echo is called?
- Date: Fri, 13 Jan 2017 03:57:30 +0000
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=xEiluUrLO6fnPgL yrahdG81cXD0=; b=Kewq3hxIPBKicigIuRaY0aD0SKXB2fR1yjd0HX/fMPdX89X VQawE+fNWAweNcIKftyWYRFw0k8Tu8L6daJNv5VkTuntMytyVDEJQyUvMR174j5b rs5GAri4iqUXXD8bKky5VFW1aSPgRJkq0Efe995Z3qEMLmf+vhVGgPQdzxRo=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=xEiluUrLO6fnPg LyrahdG81cXD0=; b=j8+wye93EJyvp+8cSHpJH6TkH6M4j0cfa1c27hDPjTEvA/ 7fXOWFLLJnK4lWd5hygYKh4RHYl1XK3TyUh1dccNSQAgECOxxt07F1VxOLn4GUCf LGG4V3Rwbnawx6/FMQdQaXJS18e7S7a1sQBpYFxYb8fzq97FxiBxUXsUpDKjQ=
- In-reply-to: <CANri+EwT3h8MkpeKSd-9_QLp9S=TEibmSgjS3r9mv0jY46dQAw__39244.7733007886$1484262699$gmane$org@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>
Timothee Cour wrote on Tue, Jan 10, 2017 at 03:22:00 -0800:
> Thanks; `set -x` is rather verbose, is there any other way to just alter
> echo to show file:line (or similar) ?
% echo() { set -x; builtin echo "$@" }
% setopt promptsubst
% PS4='$functrace> '
% source =(<<<$'print foo\nf(){\necho bar\n}\nf\n')
foo
f:1 /tmp/zshqKiKeo:5 zsh:9> echo bar
bar
See zshmodules(1) for $functrace.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author