From: John Levon Subject: Re: getting etherboot compiling Date: Tue, 5 Feb 2008 15:42:39 +0000 Message-ID: <20080205154239.GC6234@totally.trollied.org.uk> References: <20080201181647.GA7841@totally.trollied.org.uk> <20080201182103.GB7841@totally.trollied.org.uk> <200802041124.06583.Christoph.Egger@amd.com> <18343.13528.850110.443359@mariner.uk.xensource.com> <20080204170304.GA20778@totally.trollied.org.uk> <18343.17991.634564.653349@mariner.uk.xensource.com> <20080204171400.GC20778@totally.trollied.org.uk> <18343.19105.933263.331839@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <18343.19105.933263.331839@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Christoph Egger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Feb 04, 2008 at 05:25:53PM +0000, Ian Jackson wrote: > John Levon writes ("Re: [Xen-devel] getting etherboot compiling"): > > Such standards allow a system to provide a way of choosing to opt into > > them. On Solaris, that involves fiddling with the path to pick the > > standard variants (adding /usr/xpg4/bin would do it I think). This was > > because SuS and other standards are incompatible with various bits of > > historical behaviour. > > Well I think putting #!/usr/xpg4/bin/sh at the top of this script > would work even less well. Indeed. > Is there an Official Sun Answer to what #! > line should be put at the top of a portable SuSv3 shell script? Not really. "/usr/bin/env sh" would be closest I suppose, assuming you've set up your environment as in standards(5) (that is, set PATH appropriately). > As far as I can tell everyone else uses #!/bin/sh for this. This is rarely true. Most commonly, this means "something that's kind of like the Bourne shell, but definitely not the Korn or C shell", and often "I actually mean bash". > As I say, you don't need to run it now anyway (since Keir has checked > in the generated roms.h). Even so, if we have to break someone's > attempts to build after hacking the roms, I'd rather break on where > /bin/sh is prehistoric, which seems like an actual bug, rather than > systems which don't have bash or maybe lack /bin/bash as a symlink. Agreed. regards, john