zsh-users
 help / color / mirror / code / Atom feed
From: Dan Nelson <dnelson@allantgroup.com>
To: Peter Stephenson <Peter.Stephenson@csr.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to display zsh is 32/64 bit?
Date: Fri, 9 Dec 2011 09:38:15 -0600	[thread overview]
Message-ID: <20111209153815.GD53453@dan.emsphone.com> (raw)
In-Reply-To: <20111209134919.02d065e2@pwslap01u.europe.root.pri>

In the last episode (Dec 09), Peter Stephenson said:
> On Fri, 9 Dec 2011 12:34:59 +0800
> Daniel Lin <dlin.tw@gmail.com> 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


      reply	other threads:[~2011-12-09 16:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09  4:34 Daniel Lin
2011-12-09  8:04 ` Thomas Köhler
2011-12-09  8:44   ` Daniel Lin
2011-12-09 13:49 ` Peter Stephenson
2011-12-09 15:38   ` Dan Nelson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111209153815.GD53453@dan.emsphone.com \
    --to=dnelson@allantgroup.com \
    --cc=Peter.Stephenson@csr.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).