From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17652 invoked by alias); 9 Dec 2011 16:50:48 -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: 16615 Received: (qmail 25815 invoked from network); 9 Dec 2011 16:50:35 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at dan.emsphone.com does not designate permitted sender hosts) Date: Fri, 9 Dec 2011 09:38:15 -0600 From: Dan Nelson To: Peter Stephenson Cc: Zsh Users Subject: Re: How to display zsh is 32/64 bit? Message-ID: <20111209153815.GD53453@dan.emsphone.com> References: <20111209134919.02d065e2@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111209134919.02d065e2@pwslap01u.europe.root.pri> X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Fri, 09 Dec 2011 09:38:24 -0600 (CST) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 In the last episode (Dec 09), Peter Stephenson said: > On Fri, 9 Dec 2011 12:34:59 +0800 > Daniel Lin wrote: > > To do cross compile of 32/64 bit program on one machine.(which installed > > 64-bit zsh) I use ArchLinux x86_64 as host machine. And a arch32 chroot > > environment for 32-bit compiling(which installed 32-bit zsh). > > > > One problem is the PS1 of zsh. It will display the same on both > > environment. I'm wonder could I show different prompt inside the chroot > > environemnt? > > > > If zsh's prompt variable can deal this? > > I'm a bit suprised $MACHTYPE doesn't report it, but on a 64-bit RHEL > machine at work it was reporting i686, not x86_64. This comes from > config.guess; I note ours is a bit out of date. I've updated to the one > from automake 1.11.1 and it now reports x86_64 on that machine. I'll > submit the newer config.guess and config.sub (they're not actually that > new, 2009-11-20 instead of 2009-06=10). SuSE has returned MACHTYPE=x86_64 on 64-bit machines for a long time, btw: (root@chouse5) /root># echo $MACHTYPE x86_64 (root@chouse5) /root># rpm -q zsh zsh-4.2.0-31.1 (root@chouse5) /root># ls -l /bin/zsh -rwxr-xr-x 1 root root 559056 Jun 30 2004 /bin/zsh* (root@chouse5) /root># cat /etc/SuSE-release SUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 PATCHLEVEL = 3 -- Dan Nelson dnelson@allantgroup.com