From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: mdb@cdc.noaa.gov (Mark Borges)
Subject: Re: Rationalized? aliases
Date: Thu, 9 Nov 1995 12:13:57 +0100 (MET) [thread overview]
Message-ID: <199511091114.MAA24855@bolyai.cs.elte.hu> (raw)
In-Reply-To: <9511090052.AA17663@charney.cdc.noaa.gov> from "Mark Borges" at Nov 8, 95 05:52:22 pm
Mark Borges wrote:
> An interesting idea, but it doesn't seem to do the same thing on my
> system:
>
> $ e="gnuclient -q"
> $ echo $=e
> gnuclient -q
> $ alias e="$=e -h $HOMESYSTEM"
> $ type e
> e is an alias for gnuclient
> $ alias e="gnuclient -h $HOMESYSTEM"
> $ type e
> e is an alias for 'gnuclient -h foo'
> $
>
> does it (HOMESYSTEM=foo here) ?
>
> Unless this is an hzoli-ism...
It is. I think if one writes $=e she wants to split something. So it is not
a bug but a feature.
Even `rc' expansion can be used:
% foo='a b c'
% echo "${^=foo}bar"
abar bbar cbar
But splitting is disabled when the result should be one word:
% bar="${^=foo}bar"
% echo $bar
a b cbar
Bye,
Zoltan
next prev parent reply other threads:[~1995-11-09 11:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-08 20:57 Vinnie Shelton
1995-11-08 23:17 ` Richard Coleman
1995-11-08 23:36 ` Barton E. Schaefer
1995-11-09 0:52 ` Mark Borges
1995-11-09 1:07 ` Barton E. Schaefer
1995-11-09 11:13 ` Zoltan Hidvegi [this message]
1995-11-08 23:38 ` Vinnie Shelton
1995-11-09 2:12 ` Zefram
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=199511091114.MAA24855@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=mdb@cdc.noaa.gov \
/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).