[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bash 4] 'test -v 1' is never true
From: |
Alejandro Colomar |
Subject: |
[bash 4] 'test -v 1' is never true |
Date: |
Fri, 25 Nov 2022 22:02:46 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 |
Hi!
I wrote a script, and am trying it on many systems. On RHEL8, which has bash 4,
it didn't work. I could reduce the problem to the following command, which
never returns true:
test -v 1;
In Debian Sid, where I develop, and where I have bash 5, that works fine, and is
true if the function or script in which it is has any arguments. On zsh(1) it
also works fine.
Is this a known bug in bash?
The exact version where I can reproduce it is 4.4.20(1)-release
(x86_64-redhat-linux-gnu).
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
OpenPGP_signature
Description: OpenPGP digital signature
- [bash 4] 'test -v 1' is never true,
Alejandro Colomar <=