Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
typeset -T shouldn't cause an exit.
- X-seq: zsh-users 17753
- From: Larry Schrof <larrys@xxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: typeset -T shouldn't cause an exit.
- Date: Wed, 10 Apr 2013 15:59:10 +0000
- Accept-language: en-US
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=GVRORjYxUliyulx+HGgVqjvtPqhcoiVtdiQvyJ0jcsc=; b=i3EP1rJjohnfnNOmCqq75aEKUcX7GLVVgQOoJadECp/nSHPz3pAMivsKI06bicH6Q69V IWI4iuhMV7TrGQScTNlve5hdzLiO7OgUGlaoPBUyNrjb3uWTX539jYGYb4ycx+E2RmHC 7IJh2uES0YHjsgJ8Jq9ssLQv6R7gLFnfPc8=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Thread-index: AQHONgRWYItHfhUDQUeUF5NVr4FmwQ==
- Thread-topic: typeset -T shouldn't cause an exit.
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author