From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: real time alias?
Date: Thu, 15 Mar 2018 11:13:16 -0700 [thread overview]
Message-ID: <9001d78e-91fd-8505-518f-27247462d3c2@eastlink.ca> (raw)
In-Reply-To: <CAFOazAPkRJ0y4XsTrsJ2vnpsVciaDAkrF3izp3ayaD-NrH8fEg@mail.gmail.com>
On 15/03/18 10:57 AM, Jérémie Roquet wrote:
> 2018-03-15 18:51 GMT+01:00 Ray Andrews <rayandrews@eastlink.ca>:
>> If a function calls an alias, if the alias changes, the function must be
>> resourced, yes? That makes nothing but sense sincethe alias is what it is
>> at sourcing. An executed script uses the alias in 'real time'. But, is
>> there a way to make a function also use the real time value of an alias?
> You can use a function instead of an alias:
>
Sure, I was just wondering if it was possible at all with an alias. I
expect not. That's rather like asking for square circles but you don't
know until you ask, there might be some option or something whereby a
function is instructed to grab an alias at runtime sorta the way the
value of a variable is grabbed at runtime. It sounds like something
that could be doable even it it isn't actually implemented right now.
With interpreted code I'd expect it is theoretically possible.
next prev parent reply other threads:[~2018-03-15 18:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 17:51 Ray Andrews
2018-03-15 17:57 ` Jérémie Roquet
2018-03-15 18:13 ` Ray Andrews [this message]
2018-03-15 21:44 ` Marc Chantreux
2018-03-15 21:46 ` Marc Chantreux
2018-03-16 17:19 ` Justin M Wozniak
2018-03-16 17:41 ` Ray Andrews
2018-03-17 16:00 ` Marc Chantreux
2018-03-16 17:51 ` Marc Chantreux
2018-03-16 16:47 ` Ray Andrews
2018-03-16 17:41 ` Marc Chantreux
2018-03-16 18:13 ` Bart Schaefer
2018-03-16 18:56 ` Ray Andrews
2018-03-18 23:01 ` Bart Schaefer
2018-03-19 0:05 ` Ray Andrews
2018-03-17 23:17 ` Bart Schaefer
[not found] <98aa0638-97ed-dfe0-8dd2-39129d02c084__39937.2481661432$1521136270$gmane$org@eastlink.ca>
2018-03-17 22:47 ` Stephane Chazelas
2018-03-18 3:20 ` 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=9001d78e-91fd-8505-518f-27247462d3c2@eastlink.ca \
--to=rayandrews@eastlink.ca \
--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).