From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20273 invoked from network); 24 Jun 2020 12:56:40 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2020 12:56:40 -0000 Received: (qmail 25055 invoked by alias); 24 Jun 2020 12:56:30 -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: List-Unsubscribe: Sender: zsh-users@zsh.org X-Seq: 24960 Received: (qmail 27270 invoked by uid 1010); 24 Jun 2020 12:56:30 -0000 X-Qmail-Scanner-Diagnostics: from lavender.maple.relay.mailchannels.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25850. spamassassin: 3.4.4. Clear:RC:0(23.83.214.99):SA:0(-2.0/5.0):. Processed in 2.070816 secs); 24 Jun 2020 12:56:30 -0000 X-Envelope-From: pedz@easesoftware.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf1.mailchannels.net designates 23.83.214.99 as permitted sender) X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Snatch-Battle: 048758795750c757_1593003349350_5669030 X-MC-Loop-Signature: 1593003349350:3870680571 X-MC-Ingress-Time: 1593003349350 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Alias call in function fails... From: Perry Smith In-Reply-To: <20200624092804.GA19280@tarpaulin.shahaf.local2> Date: Wed, 24 Jun 2020 07:55:46 -0500 Cc: Bart Schaefer , Zsh Users Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200623120429.2c889b67@tarpaulin.shahaf.local2> <2982509.CQOukoFCf9@nbkamil> <0DAEBDBF-F680-4BE8-BF63-AEE98236F631@easesoftware.com> <20200623225409.0380caad@tarpaulin.shahaf.local2> <31DB587E-DFAD-46F6-84A9-1419A9FADE99@easesoftware.com> <8BE2B98E-923F-4576-9664-825E532FA3BE@easesoftware.com> <20200624092804.GA19280@tarpaulin.shahaf.local2> To: Daniel Shahaf X-Mailer: Apple Mail (2.3608.80.23.2.2) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com > On Jun 24, 2020, at 4:28 AM, Daniel Shahaf = wrote: >=20 > Perry Smith wrote on Tue, Jun 23, 2020 at 19:47:05 -0500: >>=20 >>=20 >>> On Jun 23, 2020, at 6:43 PM, Bart Schaefer = wrote: >>>=20 >>> On Tue, Jun 23, 2020 at 4:30 PM Perry Smith = wrote: >>>>=20 >>>> Ahh=E2=80=A6 ok. Thank you. I remember reading that now (before = your changes) >>>> but didn=E2=80=99t really ingest it. >>>=20 >>> The more classic example is something excessively abbreviated such = as >>>=20 >>> % alias -g L=3D'|less' >>> % find ~ -name \*.gif L >>=20 >> For me, I think I would more likely do something like: >>=20 >> % alias -g opts=3D=E2=80=9C-a -b -c -d=E2=80=9D >> % foo opts path/to/file >>=20 >> But, given my relative inexperience with zsh, I not think about alias = -g and >> would likely do: >>=20 >> % opts=3D=E2=80=9C-a -b -c -d=E2=80=9D >> % foo $opts path/to/file >>=20 >> or use alias -g to save a really long ugly path. etc. >>=20 >=20 > The second example won't work with the default settings (see > http://zsh.sourceforge.net/FAQ/zshfaq03.html#l18). The standard > workaround is to use an array variable, and I'd like the example to = show > a use of aliases that can't easily be achieved without them. (This = also > goes for Grant's example.) Ah=E2=80=A6 yes, you are right of course. It demonstrates that my mind = is still using bash.