On Monday, April 01, 2013 03:32:16 PM Dave Rutherford wrote:
> On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote:
> > > Description:
> > > Currently it seems to be impossible to e.g. print "-n" with the
builtin
> > > echo witout any extra characters.
> >
> > You shoul
On 04/01/2013 01:32 PM, Dave Rutherford wrote:
> On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote:
>>> Description:
>>> Currently it seems to be impossible to e.g. print "-n" with the
>>> builtin
>>> echo witout any extra characters.
>>
>> You should use printf instea
On 4/1/13 3:32 PM, Dave Rutherford wrote:
>> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html says:
>>
>> The echo utility shall not recognize the "--" argument in the manner
>> specified by Guideline 10 of XBD Utility Syntax Guidelines ; "--"
>> shall be recognized
On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote:
> > Description:
> > Currently it seems to be impossible to e.g. print "-n" with the
> > builtin
> > echo witout any extra characters.
>
> You should use printf instead. The echo command is a historical artifact
> wh
On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote:
> Description:
> Currently it seems to be impossible to e.g. print "-n" with the
> builtin
> echo witout any extra characters.
You should use printf instead. The echo command is a historical artifact
which cannot be
Hemmo Nieminen wrote:
> Description:
> Currently it seems to be impossible to e.g. print "-n" with
> the builtin echo witout any extra characters.
Correct. That is the long standing legacy behavior. The behavior was
pervasive and non-portable during many years and the existing wi
On 04/01/2013 06:16 AM, Hemmo Nieminen wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-g
"-n" being the string to be outputted.
Expected output: "-n"
Fix:
The attached patch makes the builtin echo to interpret '--' as the end
of options.
>From a30b02d03f54777bc0e59e2a0086249fde932308 Mon Sep 17 00:00:00 2001
From: Hemmo Niem