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 22345
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: option to show file:line everytime echo is called?
- Date: Tue, 10 Jan 2017 18:17:57 +0000
- Cc: 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=7RXkdgyz3w+aOit IHBFYOoOqB2M=; b=JcCJbeStMW6X1U4kmt/T2Fpf6AWYKi8diZQO59oVCc2Bn8O iH5mKWA1FC5OCFDyl/1i6PV75lwQGtoVjW9ya9YKyhzIC7kHWG4S8sz6aihKSoPk XDiDQVx+SP2zTo4k5YGmCdzuDKBIgoE32IBZ/7T0aRvxI7ReqvDEkGNjuZlQ=
- 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=7RXkdgyz3w+aOi tIHBFYOoOqB2M=; b=V9w8B1gMGHCfbxdxHkwFcQinXqwlAYZR2negC4Nc+kuTow 4OUuump+/is4npI2VClZHrhjpglFBIZaa7bxdirF97eSGP1YnIDI8zvSVPkHPYPI VoPzC+H9gONTACJr+wqXg3Tu2h1g/ZlphyLr2iVhiODEj2uN0nZI9Sf2DSsEY=
- In-reply-to: <8ed3897d-82d3-5c5f-f2c1-5382e311e931__1904.16159243814$1484070246$gmane$org@eastlink.ca>
- 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: <CANri+EzTiiKkfeDODR8PyBc=khLFONk738sFp7Vpo4uzwKMoXw@mail.gmail.com> <20170110123002.s4esovwcepqizzd5@begemot.ajrh.net> <8ed3897d-82d3-5c5f-f2c1-5382e311e931__1904.16159243814$1484070246$gmane$org@eastlink.ca>
Ray Andrews wrote on Tue, Jan 10, 2017 at 09:12:37 -0800:
> On 10/01/17 04:30 AM, Anthony Heading wrote:
> >
> >Maybe use an alias?
> >
> >#!/bin/env zsh
> >alias echo='echo ${0:A}:$LINENO'
> Where can I read up on " ${0:A} ", I haven't seen that construction before.
> And probably there's a host of siblings equally useful.
That's the `:A' modifier applied to the `$0' variable.
:A is in http://zsh.sourceforge.net/Doc/Release/Expansion.html#Modifiers
$0 is in http://zsh.sourceforge.net/Doc/Release/Parameters.html#Parameters-Set-By-The-Shell
Messages sorted by:
Reverse Date,
Date,
Thread,
Author