[PATCH] BBB: sd_setup.sh: Change /bin/bash -> /bin/sh to solely adhere to POSIX shell constructs

Ed Sutter edsutterjr at gmail.com
Sun Jul 12 00:32:19 UTC 2015


Its a builtin for both shells in my case...
Check out the output below...

    els:ps
       PID TTY          TIME CMD
      3377 pts/24   00:00:00 bash
      3427 pts/24   00:00:00 ps
    els:type echo
    echo is a shell builtin
    els:exec /bin/sh
    els:ps
       PID TTY          TIME CMD
      3377 pts/24   00:00:00 sh
      3428 pts/24   00:00:00 ps
    els:type echo
    echo is a shell builtin


There is also a /bin/echo.
Maybe we just use printf instead of echo...

> Ed,
>
> Is there any indication as to why 'echo' is failing?  'echo' is not a
> built-in command for either shell interpreter as I was able to locate
> it as a separate program using both shells.  The -e option is to allow
> interpretation of backslash characters as I was using it for newlines
> and tabs.
>
> On Sat, Jul 11, 2015 at 7:51 AM, Jarielle Catbagan
> <jcatbagan93 at gmail.com> wrote:
>> On Jul 11, 2015 7:17 AM, "Ed Sutter" <edsutterjr at gmail.com> wrote:
>>> Jarielle,
>>> Did you try running the script with that change?
>>> I applied the patch, then tried running it and it failed.
>>> Apparently 'echo' in sh is different than 'echo' in bash, at least it is
>>> for my system.
>>> Let me know.
>>> I had to remove the -e from the echo lines for it to work on my
>>> ubuntu14.04 system.
>>> You wanna test that and resubmit the patch or should I do it?
>>> Ed
>>>
>> Hi Ed,
>>
>> After I changed it to 'sh' I was able to run it.  Ok, I'll look into it to
>> see what the issue might be.
>> _______________________________________________
>>> umon-devel mailing list
>>> umon-devel at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/umon-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/umon-devel/attachments/20150711/e692a153/attachment.html>


More information about the umon-devel mailing list