Re: [CentOS] bash test ?

2023-04-18 Thread wwp
Hello lejeczek, On Wed, 19 Apr 2023 08:10:16 +0200 lejeczek wrote: > On 19/04/2023 08:04, wwp wrote: > > Hello lejeczek, > > > > > > On Wed, 19 Apr 2023 07:50:29 +0200 lejeczek via CentOS > > wrote: > > > >> Hi guys. > >> > >> I cannot wrap my hear around this: > >> > >> -> $ unset _Val;

Re: [CentOS] bash test ?

2023-04-18 Thread lejeczek via CentOS
On 19/04/2023 08:04, wwp wrote: Hello lejeczek, On Wed, 19 Apr 2023 07:50:29 +0200 lejeczek via CentOS wrote: Hi guys. I cannot wrap my hear around this: -> $ unset _Val; test -z ${_Val}; echo $? 0 -> $ unset _Val; test -n ${_Val}; echo $? 0 -> $ _Val=some; test -n ${_Val}; echo $? 0

Re: [CentOS] bash test ?

2023-04-18 Thread wwp
Hello lejeczek, On Wed, 19 Apr 2023 07:50:29 +0200 lejeczek via CentOS wrote: > Hi guys. > > I cannot wrap my hear around this: > > -> $ unset _Val; test -z ${_Val}; echo $? > 0 > -> $ unset _Val; test -n ${_Val}; echo $? > 0 > -> $ _Val=some; test -n ${_Val}; echo $? > 0 > > What is

[CentOS] bash test ?

2023-04-18 Thread lejeczek via CentOS
Hi guys. I cannot wrap my hear around this: -> $ unset _Val; test -z ${_Val}; echo $? 0 -> $ unset _Val; test -n ${_Val}; echo $? 0 -> $ _Val=some; test -n ${_Val}; echo $? 0 What is this!? How should two different, opposite tests give the same result Is there some bash option which affects tha