zsh-workers
 help / color / mirror / code / Atom feed
From: "Erwin J. van Eijk" <eijk@pegasus.esprit.ec.org>
To: zsh-workers@math.gatech.edu
Subject: Strange behaviour in variable substitution
Date: Thu, 20 Jun 1996 15:21:59 +0200	[thread overview]
Message-ID: <199606201322.AA23731@bob.pegasus.esprit.ec.org> (raw)

Hi all,

I have some strange things happening since beta13/17? (something like
that).

I have this .zshenv:
if [ -f /bin/arch ]; then
        ARCH=`/bin/arch`
elif [ -f /bin/hp-pa -a /bin/hp-pa ]; then
        ARCH=snake
elif [ -d /usr/sbin ]; then
        ARCH=netbsd
else
        ARCH=unknown
fi
export ARCH

if [ "X$ARCH" = "Xmips" ] ; then
	export LONGARCH=mips_ultrix_4.3
elif [ "X$ARCH" = "Xalpha" ] ; then
	export LONGARCH=alpha_osf1_3.2
fi

P="$HOME/bin \
$HOME/bin/bin.$ARCH \
$HOME/bin/$ARCH \
$HOME/bin/$ARCH/AF \
$HOME/Nemesis/tools/install/$LONGARCH/bin
/usr/users/eijk/bin
/usr/bin/mh \
/usr/local/bin \
 [.... some dirs deleted ......]
/usr/local/frame/bin \
/usr/users/eijk/bin/AF "

apath=""
for dir in `echo $P`
do
        if [ -d ${dir} ]; then
                apath="$apath:$dir"
        fi
done
PATH=$apath
export PATH

unset arch bin dir apath P
#end of .zshrc


The trouble is that the $HOME/bin dir is added to my path, but the
$HOME/bin/$ARCH is not (and not because they do not exist). It works
when I substitute $HOME with my homepath ofcourse, but that's no real
solution.
--
       +--------------------+
 \     | Erwin J.  van Eijk | Standard Disclaimer applies
  \ /\ | eijk@cs.utwente.nl |
  ( )  | eijk@corner.iaf.nl | A single death is a tragedy,
_( * )_+--------------------+ A million deaths is a statistic - Josef Stalin



                 reply	other threads:[~1996-06-20 13:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=199606201322.AA23731@bob.pegasus.esprit.ec.org \
    --to=eijk@pegasus.esprit.ec.org \
    --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).