msh bugs
Ritesh Banerjee
riteshban at yahoo.com
Mon Jan 16 19:40:24 UTC 2006
Hi Lei,
busybox msh does not support functions as Vladimir mentioned. Your observation is because most standard Linux distros include a msh (which is the Minix shell) different from msh in busybox. Please make sure you run "busybox msh" to execute the shell script.
Thanks,
Ritesh
Lei Sun <lei_sun at comcast.net> wrote: The weird part is, I compiled busybox with native gcc, and run msh on my
host x86 machine, all the scripts worked, even with function syntax. My
target machine is mmu-less ARM.
----- Original Message -----
From: "Vladimir N. Oleynik"
To: "Lei Sun"
Cc:
Sent: Sunday, January 15, 2006 4:33 AM
Subject: Re: msh bugs
> Lei,
>
>> Hi :
>> I was using msh, the following script gives me "syntax error"
>>
>> #!/bin/sh
>> tarball="test.tar.bz2"
>> echo "installing package..."
>> log_and_report()
>> {
>> errlev=$1
>> echo $errlev
>> }
>> log_and_report $1
>
> msh very simple shell and unsupport function syntax.
>
>
> --w
> vodz
_______________________________________________
busybox mailing list
busybox at busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
---------------------------------
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060116/c3ee5bd0/attachment-0001.htm
More information about the busybox
mailing list