Re: echo -n

2017-02-02 Thread Stephane Chazelas
2017-02-02 22:26:22 +0530, Jyoti B Tenginakai: [...] > I have tried using the printf instead of echo. But the issue with printf > is , the behaviour is not consistent with what echo prints for all the > inputs i.e. > In my script I am generically using echo for all the options. If I have to > use

Re: echo -n

2017-02-02 Thread Chet Ramey
On 2/2/17 11:56 AM, Jyoti B Tenginakai wrote: > HI All, > > Thanks for your quick response. > > I have tried using the printf instead of echo. But the issue with printf is > , the behaviour is not consistent with what echo prints for all the inputs > i.e. > In my script I am generically using

Re: echo -n

2017-02-02 Thread John McKown
On Thu, Feb 2, 2017 at 10:56 AM, Jyoti B Tenginakai wrote: > HI All, > > Thanks for your quick response. > > I have tried using the printf instead of echo. But the issue with printf > is , the behaviour is not consistent with what echo prints for all the > inputs i.e. > In

Re: echo -n

2017-02-02 Thread Greg Wooledge
On Thu, Feb 02, 2017 at 10:26:22PM +0530, Jyoti B Tenginakai wrote: > I have tried using the printf instead of echo. But the issue with printf > is , the behaviour is not consistent with what echo prints for all the > inputs i.e. But what echo prints is by definition inconsistent across platforms

Re: echo -n

2017-02-02 Thread Jyoti B Tenginakai
HI All, Thanks for your quick response. I have tried using the printf instead of echo. But the issue with printf is , the behaviour is not consistent with what echo prints for all the inputs i.e. In my script I am generically using echo for all the options. If I have to use printf instead of it

Re: echo -n

2017-02-02 Thread Eduardo Bustamante
El jue., feb. 2, 2017 9:00 AM, Sangamesh Mallayya < sangamesh.sw...@in.ibm.com> escribió: > [...] > > Please let us know if this a bug or do we have any other option to print > -n ? > Use the printf builtin command. What you encountered is a known limitation of the echo command, as specified by

Re: echo -n

2017-02-02 Thread Pierre Gaston
On Thu, Feb 2, 2017 at 11:02 AM, Sangamesh Mallayya < sangamesh.sw...@in.ibm.com> wrote: > Hi, > > description: > in bash echo -n , echo -e , echo -E has a special meaning. But we do not > have a way in bash shell if we want to print > -n , -e and -E using echo command. Other shells supports

Re: echo -n

2017-02-02 Thread John McKown
On Thu, Feb 2, 2017 at 3:02 AM, Sangamesh Mallayya < sangamesh.sw...@in.ibm.com> wrote: > Hi, > > description: > in bash echo -n , echo -e , echo -E has a special meaning. But we do not > have a way in bash shell if we want to print > -n , -e and -E using echo command. Other shells supports

Re: echo -n

2017-02-02 Thread Greg Wooledge
On Thu, Feb 02, 2017 at 02:32:00PM +0530, Sangamesh Mallayya wrote: > in bash echo -n , echo -e , echo -E has a special meaning. But we do not > have a way in bash shell if we want to print > -n , -e and -E using echo command. Other shells supports printing of > -n/-e/-E options using echo

echo -n

2017-02-02 Thread Sangamesh Mallayya
Hi, description: in bash echo -n , echo -e , echo -E has a special meaning. But we do not have a way in bash shell if we want to print -n , -e and -E using echo command. Other shells supports printing of -n/-e/-E options using echo command. For example with ksh # echo -n -n # with bash