X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C88261.C24523B0@onstor-exch02.onstor.net>; Sun, 9 Mar 2008 20:49:36 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C88261.C24523B0"
Content-class: urn:content-classes:message
Subject: RE: change #28253
Date: Sun, 9 Mar 2008 20:49:35 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E08C0F698@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0149B663@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: change #28253
Thread-Index: AciCTNgV6bAeFb11T7GWN2EJiA4aIQAD2cIQ
References: <BB375AF679D4A34E9CA8DFA650E2B04E0149B663@onstor-exch02.onstor.net>
From: "Kumar Vakacharla (HCL)" <kumarv@onstor.com>
To: "Rendell Fong" <rendell.fong@onstor.com>
Cc: "Andy Sharp" <andy.sharp@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C88261.C24523B0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

Yes, I have tested it on Bobcat and works fine.=20

I have overwritten your change as per Andy's comments.

=20

Coming to the "-e" option in echo command please find my observations
below:

=20

*         I even observed that newline(\n) itself is not available in
echo of the openBSD.=20

e.g:

eng21# echo "hi\nkumar"

hi\nkumar=20

eng21#

=20

*         During CLI call "system get all " we execute a system command
which invokes support.sh with necessary arguments.=20

As system function spawns a new shell "sh" and runs this script, the new
shell (sh) will overwrite the echo which comes as part of

openbsd's C shell.=20

=20

*         I think in "sh", backslash character support is enabled by
default for echo command irrespective of "-e" option. If we want to
turnoff this feature we have to provide "-E" option.=20

e.g:

In BSD:

eng21# echo -e "hi\nkumar"

-e hi\nkumar

eng21#sh <------------------- switch to shell "sh"=20

# echo "hello\nkumar"

hello

kumar

# echo -e "hello\nkumar"

hello

kumar

# echo -E "hello\nkumar"

hello\nkumar

=20

*         In bash used by linux, has this feature disabled by default
and we need to specify "-e" to turn it on explicitly. =20

E.g:

In Linux:=20

=20

g11r204:/ # echo "hello\nkumar"

hello\nkumar

g11r204:/ # echo -e "hello\nkumar"

hello

kumar

g11r204:/ # echo -E "hello\nkumar"

hello\nkumar

g11r204:/ #

=20

 Please correct me if my understanding is wrong.=20

=20

=20

Thanks,

Kumar.

=20

=20

-----Original Message-----
From: Rendell Fong=20
Sent: Sunday, March 09, 2008 6:20 PM
To: Kumar Vakacharla (HCL)
Cc: Andy Sharp
Subject: change #28253

=20

=20

Hi,

=20

The submittal of support.sh in change #28253 was not resolved properly.
The echo option that you added already existed in the previous version.
Also, have you tested this change on Bobcat?  OpenBSD doesn't have an
echo -e option as far as I can tell.  The previous version checked for
this case.

=20

Thanks,

Rendell=20


------_=_NextPart_001_01C88261.C24523B0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 77.95pt 1.0in 77.95pt;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:631062176;
	mso-list-type:hybrid;
	mso-list-template-ids:156510362 67698689 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Yes, I have tested it on Bobcat and works fine. =
<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>I have overwritten your change as per Andy's =
comments.<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Coming to the &quot;-e&#8221; option in echo command please find =
my observations
below:<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 =
lfo1'><![if !supportLists]><font
size=3D2 face=3DSymbol><span =
style=3D'font-size:10.0pt;font-family:Symbol'><span
style=3D'mso-list:Ignore'>&middot;<font size=3D1 face=3D"Times New =
Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]>I even observed that =
newline(\n) itself
is not available in echo of the openBSD. <o:p></o:p></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.75in;text-indent:.25in'><font size=3D2
face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>e.g:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>eng21# echo =
&quot;hi\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hi\nkumar =
<o:p></o:p></span></font></p>

<p class=3DMsoPlainText style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;font-family:"Times New Roman";
color:green'>eng21#<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 =
lfo1'><![if !supportLists]><font
size=3D2 face=3DSymbol><span =
style=3D'font-size:10.0pt;font-family:Symbol'><span
style=3D'mso-list:Ignore'>&middot;<font size=3D1 face=3D"Times New =
Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]>During CLI call =
&#8220;system get
all &#8220; we execute a system command which invokes support.sh with =
necessary
arguments. <o:p></o:p></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.25in;text-indent:.25in'><font size=3D2
face=3D"Courier New"><span style=3D'font-size:10.0pt'>As system function =
spawns a
new shell &#8220;sh&#8221; and runs this script, the new shell (sh) will
overwrite the echo which comes as part of<o:p></o:p></span></font></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.25in;text-indent:.25in'><font size=3D2
face=3D"Courier New"><span style=3D'font-size:10.0pt'>openbsd&#8217;s C =
shell. <o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 =
lfo1'><![if !supportLists]><font
size=3D2 face=3DSymbol><span =
style=3D'font-size:10.0pt;font-family:Symbol'><span
style=3D'mso-list:Ignore'>&middot;<font size=3D1 face=3D"Times New =
Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]>I think in =
&#8220;sh&#8221;, backslash
character support is enabled by default for echo command irrespective of
&#8220;-e&#8221; option. If we want to turnoff this feature we have to =
provide
&#8220;-E&#8221; option. <o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><b><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green;font-weight:
bold'>e.g:<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><b><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green;font-weight:
bold'>In BSD:<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>eng21# echo
-e &quot;hi\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span style=3D'font-size:10.0pt;color:green'>-e =
hi\nkumar<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><b><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green;font-weight:
bold'>eng21#sh &lt;------------------- switch to shell &#8220;sh&#8221; =
<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span style=3D'font-size:10.0pt;color:green'># =
echo
&quot;hello\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hello<o:p></o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>kumar<o:p></o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span style=3D'font-size:10.0pt;color:green'># =
echo -e
&quot;hello\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hello<o:p></o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>kumar<o:p></o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span style=3D'font-size:10.0pt;color:green'># =
echo -E
&quot;hello\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hello\nkumar<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText =
style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 =
lfo1'><![if !supportLists]><font
size=3D2 face=3DSymbol><span =
style=3D'font-size:10.0pt;font-family:Symbol'><span
style=3D'mso-list:Ignore'>&middot;<font size=3D1 face=3D"Times New =
Roman"><span
style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></span></font><![endif]>In bash used by linux, has =
this
feature disabled by default and we need to specify &#8220;-e&#8221; to =
turn it
on explicitly.&nbsp; <o:p></o:p></p>

<p class=3DMsoPlainText style=3D'margin-left:.5in'><font size=3D2 =
face=3D"Courier New"><span
style=3D'font-size:10.0pt'>E.g:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><b><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green;font-weight:
bold'>In Linux: <o:p></o:p></span></font></b></p>

<p class=3DMsoPlainText style=3D'margin-left:.5in'><font size=3D2 =
face=3D"Courier New"><span
style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>g11r204:/ #
echo &quot;hello\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hello\nkumar<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>g11r204:/ #
echo -e &quot;hello\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hello<o:p></o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>kumar<o:p></o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>g11r204:/ #
echo -E &quot;hello\nkumar&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>hello\nkumar<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dgreen
face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;color:green'>g11r204:/ =
#<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>&nbsp;Please correct me if my understanding is wrong. =
<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Thanks,<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Kumar.<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>-----Original Message-----<br>
From: Rendell Fong <br>
Sent: Sunday, March 09, 2008 6:20 PM<br>
To: Kumar Vakacharla (HCL)<br>
Cc: Andy Sharp<br>
Subject: change #28253</span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>The submittal of support.sh in change #28253 was not resolved
properly.&nbsp; The echo option that you added already existed in the =
previous
version.&nbsp; Also, have you tested this change on Bobcat?&nbsp; =
OpenBSD
doesn't have an echo -e option as far as I can tell.&nbsp; The previous =
version
checked for this case.<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Thanks,<o:p></o:p></span></font></p>

<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>Rendell <o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C88261.C24523B0--
