Re: [CentOS] bash test ?

2023-04-19 Thread Jon LaBadie
On Wed, Apr 19, 2023 at 09:16:26PM +0200, lejeczek via CentOS wrote: On 19/04/2023 08:46, wwp wrote: Hello lejeczek, ... Surround ${_Val} with double quotes (as you should) and things will be different: $ unset _Val; test -n "${_Val}"; echo $? 1 Now you get it? :-) I don't know, am not

Re: [CentOS] bash test ?

2023-04-19 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

Re: [CentOS] bash test ?

2023-04-19 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-19 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-19 Thread Jon LaBadie
On Wed, Apr 19, 2023 at 07:50:29AM +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 this!? How should two different, opposite

Re: [CentOS] bash test ?

2023-04-19 Thread lejeczek via CentOS
On 19/04/2023 08:46, wwp wrote: 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; test

Re: [CentOS] bash test ?

2023-04-19 Thread Chris Adams
Once upon a time, lejeczek said: > There is a several ways to run tests in shell, but 'test' which is > own binary as I understand, defeats me.. > in those three examples - regardless of how one can "bend" quoting & > expanding - the same identical variable syntax is used and yet > different

[CentOS-docs] [centos/centos.org] branch main updated: Removing sponsor

2023-04-19 Thread git
This is an automated email from the git hooks/post-receive script. arrfab pushed a commit to branch main in repository centos/centos.org. The following commit(s) were added to refs/heads/main by this push: new 83a5dbd Removing sponsor 83a5dbd is described below commit