From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: alias hygiene
Date: Sat, 17 Feb 2018 15:36:02 +0000 [thread overview]
Message-ID: <1518881762.3608914.1274129584.52798C3E@webmail.messagingengine.com> (raw)
In-Reply-To: <1518875676.3562728.1274073304.5ED24DC8@webmail.messagingengine.com>
Daniel Shahaf wrote on Sat, 17 Feb 2018 13:54 +0000:
> However, note also:
>
> % alias x='echo foo; echo bar'
> % x qux
By the way, this alias definition isn't quite good either; it would be
better with braces or as a function, to avoid unexpected parsing. This
is similar to the need for «do { ... } while (0)» loops in C statement macros.
next prev parent reply other threads:[~2018-02-17 15:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 16:09 Ray Andrews
2018-02-17 0:30 ` Daniel Shahaf
2018-02-17 3:14 ` Ray Andrews
2018-02-17 13:54 ` Daniel Shahaf
2018-02-17 15:20 ` Ray Andrews
2018-02-17 15:30 ` Daniel Shahaf
2018-02-17 15:42 ` Ray Andrews
2018-02-17 22:04 ` Bart Schaefer
2018-02-18 0:17 ` Ray Andrews
2018-02-18 2:10 ` Bart Schaefer
2018-02-18 3:38 ` Ray Andrews
2018-02-19 6:37 ` Bart Schaefer
2018-02-27 13:48 ` Vincent Lefevre
2018-02-27 15:26 ` Ray Andrews
2018-02-17 15:36 ` Daniel Shahaf [this message]
2018-02-17 21:40 ` Bart Schaefer
2018-02-18 0:08 ` Ray Andrews
2018-02-19 6:28 ` Bart Schaefer
2018-02-19 18:14 ` Ray Andrews
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1518881762.3608914.1274129584.52798C3E@webmail.messagingengine.com \
--to=d.s@daniel.shahaf.name \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).