site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=content-type:mime-version:subject:from:in-reply-to:date:content-transfer-encoding:message-id:references:to; s=smtpout; bh=TDuIkidUoH2K4qHaTWiU2hjOi/Q=; b=Zj3O0oL2czBCghomET++VxJpl0IGcjIf5sIcfF0AacXXcu6bxWifPCVKPxrh+mU+ldO+yUlI6znaOhrDrqnPpzsSwMTzev/JqyXYihJGvwM+6nONXekkJXRtNX2t3bXwE6wpcFzO0KFrwVkC8n2WYVciyiGkOCSv8v3KV4tgsg8= On 06/08/2010, at 16:49, François Revol wrote:
Alternatively it might be possible to parse the output of file on /bin/sh, here it gives:
$ file /bin/sh /bin/sh: Mach-O universal binary with 2 architectures /bin/sh (for architecture x86_64): Mach-O 64-bit executable x86_64 /bin/sh (for architecture i386): Mach-O executable i386
That only tells what's installed, but not which binaries the platform is able to execute. Lack of ppc here is probably due to the OS being 10.6 10.5 has the simple "arch" command which can only tell which platform it is. 10.6 (which doesn't support ppc) is able to execute a binary using a specific arch, e.g. "arch -i386 /usr/bin/true" ---- - Peter Speck _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com