[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash tests failing when compiled with --enable-xpg-echo-default=yes
From: |
Vladimir Marek |
Subject: |
Re: bash tests failing when compiled with --enable-xpg-echo-default=yes |
Date: |
Sun, 4 Dec 2016 13:38:36 +0000 |
User-agent: |
Mutt/1.5.22.1-rc1 (2013-10-16) |
> > And second patch we use because of xpg-echo. Would it have sense to have
> > it included, or maybe stop the tests completely instead?
>
> You could just have turned off the xpg_echo option instead of going through
> a convoluted test (which just emulates `shopt -q') to determine whether or
> not it's on, but it does need to be off.
Understood. I'm thinking about it this way - we have nonstandard shell
for historic reasons. Many tests from the test suite still works fine. I
want to test as much as possible of the shell Solaris people will be
using. If I just disable xpg_echo, I won't be testing that. The pain of
maintaining the tests is price for that.
However, if you see point in testing also xpg_echo enabled shell, we
might apply just the changes (echo -E) to where it matters and leave the
rest to be tested in the same way as official shell.
> This demonstrates just how incompatible echo is across shells.
And if you can't trust 'echo' echo, what can you ? :)
Thank you
--
Vlad
Re: bash tests failing when compiled with --enable-xpg-echo-default=yes, Chet Ramey, 2016/12/03