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

Jarielle Catbagan jcatbagan93 at gmail.com
Sat Jul 11 15:40:43 UTC 2015


Hi Dr. Joel,

On Sat, Jul 11, 2015 at 8:19 AM, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
>
>
> On July 11, 2015 10:06:09 AM CDT, Jarielle Catbagan <jcatbagan93 at gmail.com> wrote:
>>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.
>
> Do  sh -x and then try the command by hand at a prompt.
>

Using sh -x, I issued

        echo -e "test\t123"

and it outputted

        + echo -e 'test\t123'
        test        123

>>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
>>_______________________________________________
>>umon-devel mailing list
>>umon-devel at rtems.org
>>http://lists.rtems.org/mailman/listinfo/umon-devel
>
> --joel


More information about the umon-devel mailing list