[maemo-users] OS2008: .bashrc or .bash_profile?

From: Juha Kallioinen juha.kallioinen at nokia.com
Date: Thu Dec 13 13:59:14 EET 2007
ext Peter Flynn wrote:
> Eero Tamminen wrote:
>> The device doesn't have Bash.  And because Busybox conflicts with it 
>> (because Bash tries to set itself as /bin/sh which would
>> significantly slow down device bootup and use more memory), you
>> cannot install one either.
> What happens if you download a script written for sh or bash and try to 
> execute it? Are the other conventional text utilities there (sed, grep, 
> awk, tr, etc)?

Yes the utilities are there, mostly provided by BusyBox. The utilities do 
not offer some (any?) GNU extensions [1] that are sometimes used in shell 
scripts for certain commands so your existing scripts may fail.

The BusyBox provides the Ash shell and not Bash so if your script uses some 
feature/syntax only available in Bash then it will not work without 
modifications (in this case the script should use #!/bin/bash anyways).


[1] an example: chmod does not recognize the option --reference=RFILE

Juha Kallioinen                                               JID: kaltsi at ok

More information about the maemo-users mailing list