From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7491 invoked by alias); 13 Jan 2017 04:01:11 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22354 Received: (qmail 20870 invoked from network); 13 Jan 2017 04:01:11 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.26):SA:0(-0.7/5.0):. Processed in 1.158482 secs); 13 Jan 2017 04:01:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) 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= X-ME-Sender: X-Sasl-enc: 0SQrtP/Q1ulQB2yumA04DlUm1vsi3+ELlfy9PinlJ4Aq 1484280064 Date: Fri, 13 Jan 2017 03:57:30 +0000 From: Daniel Shahaf To: Timothee Cour Cc: Peter Stephenson , zsh-users@zsh.org Subject: Re: option to show file:line everytime echo is called? Message-ID: <20170113035730.GA1812@fujitsu.shahaf.local2> References: <20170110093042.41111f8a@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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