<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">For my system, with bash the "echo -e"
is fine, but with sh, it chokes...<br>
<blockquote><tt>els:ps</tt><br>
<tt> PID TTY TIME CMD</tt><br>
<tt> 3938 pts/24 00:00:00 bash</tt><br>
<tt> 3988 pts/24 00:00:00 ps</tt><br>
<tt>els:echo "hello\n1\n2\n3\n"</tt><br>
<tt>hello\n1\n2\n3\n</tt><br>
<tt>els:echo -e "hello\n1\n2\n3\n"</tt><br>
<tt>hello</tt><br>
<tt>1</tt><br>
<tt>2</tt><br>
<tt>3</tt><br>
<br>
<tt>els:</tt>exec /bin/sh<br>
<tt>els:ps</tt><br>
<tt> PID TTY TIME CMD</tt><br>
<tt> 3938 pts/24 00:00:00 sh</tt><br>
<tt> 3991 pts/24 00:00:00 ps</tt><br>
<tt>els:echo "hello\n1\n2\n3\n"</tt><br>
<tt>hello</tt><br>
<tt>1</tt><br>
<tt>2</tt><br>
<tt>3</tt><br>
<br>
<tt>els:echo -e "hello\n1\n2\n3\n"</tt><br>
<tt>-e hello</tt><br>
<tt>1</tt><br>
<tt>2</tt><br>
<tt>3</tt><br>
<br>
<tt>els:</tt><br>
</blockquote>
Just noticed one other thing:<br>
<blockquote><tt>els:ls -l /bin/sh</tt><br>
<tt>
</tt><tt>lrwxrwxrwx 1 root root 4 Feb 19 2014 /bin/sh ->
dash</tt><br>
<tt>
</tt><tt>els:ls -l /bin/bash</tt><br>
<tt>
</tt><tt>-rwxr-xr-x 1 root root 986672 Oct 7 2014 /bin/bash</tt><br>
</blockquote>
<br>
If you guys think my system is in a strange state; hence, I'm
causing this<br>
confusion, I'll just commit it as is. <br>
Ed<br>
</div>
<blockquote
cite="mid:CANjxxd0CZvwdQNZ+ncLDLnqXH99JjNWPBUkAF0V8DHRz72v4JQ@mail.gmail.com"
type="cite">
<pre wrap="">Hi Dr. Joel,
On Sat, Jul 11, 2015 at 8:19 AM, Joel Sherrill
<a class="moz-txt-link-rfc2396E" href="mailto:joel.sherrill@oarcorp.com"><joel.sherrill@oarcorp.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
On July 11, 2015 10:06:09 AM CDT, Jarielle Catbagan <a class="moz-txt-link-rfc2396E" href="mailto:jcatbagan93@gmail.com"><jcatbagan93@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
Do sh -x and then try the command by hand at a prompt.
</pre>
</blockquote>
<pre wrap="">
Using sh -x, I issued
echo -e "test\t123"
and it outputted
+ echo -e 'test\t123'
test 123
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">On Sat, Jul 11, 2015 at 7:51 AM, Jarielle Catbagan
<a class="moz-txt-link-rfc2396E" href="mailto:jcatbagan93@gmail.com"><jcatbagan93@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
On Jul 11, 2015 7:17 AM, "Ed Sutter" <a class="moz-txt-link-rfc2396E" href="mailto:edsutterjr@gmail.com"><edsutterjr@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
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
</pre>
</blockquote>
</blockquote>
<pre wrap="">it is
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap="">
Hi Ed,
After I changed it to 'sh' I was able to run it. Ok, I'll look into
</pre>
</blockquote>
<pre wrap="">it to
</pre>
<blockquote type="cite">
<pre wrap="">see what the issue might be.
_______________________________________________
</pre>
<blockquote type="cite">
<pre wrap="">umon-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:umon-devel@rtems.org">umon-devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/umon-devel">http://lists.rtems.org/mailman/listinfo/umon-devel</a>
</pre>
</blockquote>
</blockquote>
<pre wrap="">_______________________________________________
umon-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:umon-devel@rtems.org">umon-devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/umon-devel">http://lists.rtems.org/mailman/listinfo/umon-devel</a>
</pre>
</blockquote>
<pre wrap="">
--joel
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>