From: Larry Schrof <larrys@fb.com>
To: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: typeset -T shouldn't cause an exit.
Date: Wed, 10 Apr 2013 15:59:10 +0000 [thread overview]
Message-ID: <ED2B935DE024BE43B79F5C1268FCE9EB58E89582@PRN-MBX01-2.TheFacebook.com> (raw)
In my .zshenv, I tie LD_LIBRARY_PATH<->ld_library_path and
CLASSPATH<->classpath.
The problem is that typeset -T causes a fatal exit 126 if one attempts to
tie
variables that are already tied. (Fatal meaning that it stops sourcing
my .zshenv at that line; it does not continue reading.) This seems both
overly
harsh and inconvenient. I'm forced to do something janky like:
typeset -T | grep -q '^LD_LIBRARY_PATH='
if [[ $? -eq 0 ]]; then
typeset -T LD_LIBRARY_PATH ld_library_path :
fi
Can we fix this behavior so that at worst a warning is issued and zsh
continues along happily?
next reply other threads:[~2013-04-10 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 15:59 Larry Schrof [this message]
2013-04-10 17:04 ` Peter Stephenson
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=ED2B935DE024BE43B79F5C1268FCE9EB58E89582@PRN-MBX01-2.TheFacebook.com \
--to=larrys@fb.com \
--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).