Re: echo -n

2017-02-06 Thread Stephane Chazelas
2017-02-06 09:45:26 +0530, Jyoti B Tenginakai: [...] > Again I see that this printf we can use. But there are some scenarios where > the o/p does not exactly match with echo. So still its good to have a way > to pirnt -n /-e/-E with echo. Can this be considered as bug and can this be > fixed? [..

Re: echo -n

2017-02-05 Thread Peter & Kelly Passchier
Depending on your use case, you could do something like: $ echo $'\u2010'n -n On 06/02/2560 13:37, Clark Wang wrote: > On Mon, Feb 6, 2017 at 12:15 PM, Jyoti B Tenginakai > mailto:jyoti@in.ibm.com>> wrote: > > Thanks you all, > > Again I see that this printf we can use. But there are

Re: echo -n

2017-02-05 Thread Clark Wang
On Mon, Feb 6, 2017 at 12:15 PM, Jyoti B Tenginakai wrote: Thanks you all, > > Again I see that this printf we can use. But there are some scenarios > where the o/p does not exactly match with echo. So still its good to have a > way to pirnt -n /-e/-E with echo. Can this be considered as bug and

Re: echo -n

2017-02-05 Thread Jyoti B Tenginakai
nakai , Pierre Gaston Cc: chet.ra...@case.edu, Sangamesh Mallayya , "bug-bash@gnu.org" Date: 02/02/2017 11:21 PM Subject:Re: echo -n On 2/2/17 11:56 AM, Jyoti B Tenginakai wrote: > HI All, > > Thanks for your quick response.

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 p

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 ech

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 my script I am generica

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
Sangamesh Mallayya Cc: "bug-bash@gnu.org" , Jyoti B Tenginakai Date: 02/02/2017 08:45 PM Subject:Re: echo -n 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

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 P

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 print

Re: echo -n

2017-02-02 Thread Eric Blake
On 02/02/2017 03:02 AM, Sangamesh Mallayya 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. There is NO portable way to print those strings using 'echo'.

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 printi

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 comma