From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20684 invoked by alias); 9 Dec 2011 14:39:47 -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: 16614 Received: (qmail 9913 invoked from network); 9 Dec 2011 14:39:45 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Fri, 9 Dec 2011 13:49:19 +0000 From: Peter Stephenson To: Zsh Users Subject: Re: How to display zsh is 32/64 bit? Message-ID: <20111209134919.02d065e2@pwslap01u.europe.root.pri> In-Reply-To: References: Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.101.11.233] X-Scanned-By: MailControl 7.6.5 (www.mailcontrol.com) on 10.71.0.128 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). -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog