From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10639 invoked from network); 19 Dec 2002 16:46:38 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Dec 2002 16:46:38 -0000 Received: (qmail 514 invoked by alias); 19 Dec 2002 16:46:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18021 Received: (qmail 473 invoked from network); 19 Dec 2002 16:46:16 -0000 Date: Thu, 19 Dec 2002 10:46:13 -0600 From: Dan Nelson To: Zsh Subject: Re: What can we do with the drunken libc? Message-ID: <20021219164613.GJ54615@dan.emsphone.com> References: <20021219163435.GA2285@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021219163435.GA2285@DervishD> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i In the last episode (Dec 19), DervishD said: > Hi all :)) > > Excuse the subject, it's just that I'm starting to be pissed off > by GNUisms... Let's go to the matter. In the GNU libc 'ldd' script, > we can see something like: > > echo $"Usage: ldd [OPTION]... FILE..." > > Obviously, zsh prints '$Usage: ....', but bash prints just > 'Usage: ...'. Why? Well, because as the bash documentation says, a > doubled quoted string preceeded by a dollar sign, will cause the > string to be translated according to the current locale. There are a > couple of shell variables involved, too, TEXTDOMAIN and TEXTDOMAINDIR. Debian simply changes the bang path for ldd to /bin/bash, since it uses /bin/dash (an ash clone) for /bin/sh. -- Dan Nelson dnelson@allantgroup.com