From: Richard Coleman <coleman@math.gatech.edu>
To: schaefer@nbn.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: Symmetry of hash/unhash
Date: Mon, 24 Jun 1996 17:07:59 -0400 [thread overview]
Message-ID: <199606242108.RAA03506@redwood.skiles.gatech.edu> (raw)
In-Reply-To: Your message of "Sun, 23 Jun 1996 10:56:58 PDT." <960623105703.ZM13192@candle.brasslantern.com>
> Why doesn't "hash" accept "-a" for aliases, like "unhash"? Shouldn't
> "hash -f" mean functions, like "unhash"?
>
> Or maybe it's "unhash" that should *lose* -a and -f. Is there any
> difference between "unalias" and "unhash -a", or "unfunction" and
> "unhash -f"?
unhash -a and unalias are (internal) aliases for the same thing.
The same is true for unfunction and unhash -f.
It just worked out that when I has rewriting all the hash table
code that I could easily overload unhash to handle unalias and
unfunction. The fact that you can also use unhash -a and unhash -f
is unimportant.
To try to improve the symmetry any further would just needlessly
complicate the code with little gain.
rc
prev parent reply other threads:[~1996-06-24 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-23 17:56 Bart Schaefer
1996-06-24 21:07 ` Richard Coleman [this message]
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=199606242108.RAA03506@redwood.skiles.gatech.edu \
--to=coleman@math.gatech.edu \
--cc=schaefer@nbn.com \
--cc=zsh-workers@math.gatech.edu \
/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).