From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12741 invoked by alias); 10 Apr 2013 16:46:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17753 Received: (qmail 29111 invoked from network); 10 Apr 2013 16:46:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at spf-00082601.pphosted.com designates 67.231.153.30 as permitted sender) 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= From: Larry Schrof To: "zsh-users@zsh.org" Subject: typeset -T shouldn't cause an exit. Thread-Topic: typeset -T shouldn't cause an exit. Thread-Index: AQHONgRWYItHfhUDQUeUF5NVr4FmwQ== Date: Wed, 10 Apr 2013 15:59:10 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.16.4] Content-Type: text/plain; charset="us-ascii" Content-ID: <598A84866A728449A65D6429F9D953FB@fb.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-04-10_07:2013-04-10,2013-04-10,1970-01-01 signatures=0 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=3D' 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?