On 8/16/20 12:21 PM, Eric Blake wrote:
> POSIX says this one is implementation-defined; so whether -n is treated as
> an option or as a string to echo has to be documented by the implementation
> (bash documents treating it as an option).
It's not technically an option; it's a first operand that
On 8/16/20 12:26 PM, Eli Schwartz wrote:
> Err...
>
> "Implementations shall not support any options."
Yes, that's why the -n/-E/-e aren't described as options -- that would
turn on the special `--' processing -- but as first operands that enable
special treatment.
--
``The lyf so short, the c
On 8/16/20 12:20 PM, Eli Schwartz wrote:
>
>> Bash Version: 5.0
>> Patch Level: 18
>> Release Status: release
>>
> bash does accept -n, -e, -E in violation of POSIX, unless shopt -s shopt
> -s xpg_echo is set,
That's not a POSIX violation.
--
``The lyf so short, the craft so long to lerne.'' -
On Aug 16, 2020, at 12:21 PM, Eric Blake wrote:
> I see nothing in your report about bash disobeying POSIX, but rather
> confusion on your part about what POSIX actually requires.
I didn't say it violated POSIX. My expectations were set by the Bash Manual,
which describes the behavior I'm expe
On 8/16/20 11:20 AM, Eli Schwartz wrote:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
echo does not accept options, and is not permitted to accept options
including "--".
bash does accept -n, -e, -E in violation of POSIX, unless shopt -s shopt
-s xpg_echo is set, but it
On 8/16/20 12:21 PM, Eric Blake wrote:
> On 8/16/20 10:47 AM, Todd A. Jacobs wrote:
>
>> Description:
>> The echo builtin accepts options, but does not seem to handle
>> `--` correctly as the end of options.
>
> The correct behavior for echo is described here:
> https://pubs.ope
Hello Todd,
Eric Cook wrote:
> This is an intentional relic of the past, you really should use printf.
See
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html#tag_20_37_18
BTW/1:
Because of this /bin/echo behaves the same way in most Linux distribution.
BTW/2:
echo -n -n$'
On 8/16/20 11:47 AM, Todd A. Jacobs wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: darwin19.5.0
> Compiler: clang
> Compilation CFLAGS: -DSSH_SOURCE_BASHRC -Wno-parentheses -Wno-format-security
> uname output: Darwin titan.local 19.6.0 Darwin Ke
On 8/16/20 10:47 AM, Todd A. Jacobs wrote:
Description:
The echo builtin accepts options, but does not seem to handle
`--` correctly as the end of options.
The correct behavior for echo is described here:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
"T
On 8/16/20 11:47 AM, Todd A. Jacobs wrote:
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: darwin19.5.0
Compiler: clang
Compilation CFLAGS: -DSSH_SOURCE_BASHRC -Wno-parentheses -Wno-format-security
uname output: Darwin titan.local 19.6.0 Darwin Kernel Versi
10 matches
Mail list logo