OS2008: .bashrc or .bash_profile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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).

Cheers,
  Juha

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

-- 
Juha Kallioinen                                               JID: kaltsi at ok


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux