zsh-workers
 help / color / mirror / code / Atom feed
From: Mark Borges <mdb@cdc.noaa.gov>
To: schaefer@z-code.ncd.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: Rationalized? aliases
Date: Wed, 8 Nov 1995 17:52:22 -0700	[thread overview]
Message-ID: <9511090052.AA17663@charney.cdc.noaa.gov> (raw)
In-Reply-To: <951108153643.ZM22842@zyrcon.z-code.com>

>> On Wed, 8 Nov 1995 15:36:43 -0800,
>> Barton E Schaefer(B) wrote:
B> } > % echo $ZSH_VERSION
B> } > 2.6-beta11
B> } > alias e="gnuclient -q"
B> } > % [[ $HOST != $HOMESYSTEM ]] && alias e="$(whence e) -h $HOMESYSTEM"
B> } > % type e
B> } > e is an alias for \''gnuclient -q'\'' -h spacely'
B> } > 

B> What's wrong with:

B> e="gnuclient -q"
B> [[ $HOST != $HOMESYSTEM ]] && alias e="$=e -h $HOMESYSTEM" || alias e="$=e"

B> ??  Why get "whence" involved at all?

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...

  -mb-


  reply	other threads:[~1995-11-09  1:05 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 [this message]
1995-11-09  1:07       ` Barton E. Schaefer
1995-11-09 11:13       ` Zoltan Hidvegi
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=9511090052.AA17663@charney.cdc.noaa.gov \
    --to=mdb@cdc.noaa.gov \
    --cc=schaefer@z-code.ncd.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).