[OpenBIOS] [RFC] cross-compiler detection does not work with dash
Andreas Färber
andreas.faerber at web.de
Fri Apr 23 15:45:33 CEST 2010
Hello Stefan,
Am 23.04.2010 um 15:17 schrieb Stefan Reinauer:
> On 4/23/10 2:44 PM, Andreas Färber wrote:
>> On Ubuntu Karmic `./config/scripts/switch-arch cross-ppc` did not
>> recognize my powerpc-elf-gcc. The GNOME Terminal appears to use bash,
>> where `type -p powerpc-elf-gcc && echo yah` works, but /bin/sh is
>> dash, where it does not:
>> echo "type -p powerpc-elf-gcc && echo yah" | /bin/sh
>>
> Ouch... I think we should change the script to use #!/bin/bash ...
Please don't! On BSDs it may be /usr/local/bin/bash. And /usr/bin/env
bash would fail in the BeOS world.
Andreas
More information about the OpenBIOS
mailing list