bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.


From: Eric Blake
Subject: Re: [PATCH] Adding support for '--' in builtin echo's option parsing.
Date: Mon, 01 Apr 2013 11:50:52 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

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-gnu' 
> -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' 
> -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -march=x86-64 
> -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 
> -D_FORTIFY_SOURCE=2 
> -DDEFAULT_PATH_VALUE='/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin'
>  -DSTANDARD_UTILS_PATH='/usr/bin:/bin:/usr/sbin:/sbin' 
> -DSYS_BASHRC='/etc/bash.bashrc' -DSYS_BASH_LOGOUT='/etc/bash.bash_logout'
> uname output: Linux fcku 3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 
> 2013 x86_64 GNU/Linux
> Machine Type: x86_64-unknown-linux-gnu
> 
> Bash Version: 4.2
> Patch Level: 45
> Release Status: release
> 
> Description:
>         Currently it seems to be impossible to e.g. print "-n" with the 
> builtin
>         echo witout any extra characters.
> 
> Repeat-By:
>         Invoke echo with the string "-n" being the string to be outputted.
>         Expected output: "-n"

NACK.  This would violate POSIX, which requires that 'echo' is one of
the few apps that MUST NOT have special handling for '--'.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]