Zsh Mailing List Archive
Messages sorted by:
Re: 32 or 64
- X-seq: zsh-users 22244
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: 32 or 64
- Date: Wed, 21 Dec 2016 19:33:21 +0000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Hk0uOY0NWEgMgdg qTl0nwOymm04=; b=k77uhpYC6wbnUbF3axkdq9lMZp3W5MtS9lSoAqk1b/RPGp1 cANbB/uTZXYYMPL21HWZPXmTF3kI5akzYV7jBfJg0QfHvDYMIJl5CVdhcoTTlplj /TykBU9kic5JS3hmHC0mnglzwk6hbn1p0+IW4ZNfOBNxKnDKTnLmFQbobysE=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Hk0uOY0NWEgMgd gqTl0nwOymm04=; b=cVdnyl4SzPYVG7yOhMQDgNqDgwzxG9ffwpl7WulDkITU9C /vVGl5mSNHR0jHTswp4ygsrf3lEz3Q/7/+DRgjCxzc+M6x4cEdxaIDuOy/W3J0xx I8MfOPyugOFARjwqSYHWDj+vKa+DsKyyQ6ERAgn5Nv3wwopycG8kvReok2Qx0=
- In-reply-to: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <email@example.com>
Ray Andrews wrote on Wed, Dec 21, 2016 at 11:15:20 -0800:
> Now that I have both 32 bit and 64 bit versions of various binaries, whereas
> I used to just store them in a /Bin directory which is on my path, now, if
> I'm jumping back and forth between 32 bit Debian and 64 bit Debian, whereas
> previously different installs could share the same /Bin directory (all being
> 32 bit previously)
Don't share the /bin directory between OS installs. Doing so is liable
to leave one of the two OSes unbootable at some point.
That's assuming /bin is on the / partition. if /bin is a symlink to
/usr/bin [as seems to be fashionable nowadays] and /usr is its own
partition, then sharing that partition can be made to work, with some
care. But I don't think that's what you have.
> now I hafta be able to distinguish 32 from 64, so I'm
> thinking to symlink /Bin to either /Bin32 or /Bin64 and I'm wondering if
> there might be a simple way for zsh to make that link for me based on
> knowing if either itself, or the kernel is 32 or 64 bit. I could test the
> output of 'uname -r' of course, but I'd not be surprised if zsh can do it
> more elegantly and robustly than checking for substrings in the kernel name.
For future reference, there's `uname -m`.
But again: I would recommend just giving each OS its own partition.
That's a lot less likely to break.
Messages sorted by: