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
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
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;
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
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
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
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
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
8 matches
Mail list logo