> 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
>
> N
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 su
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 tests
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 -
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
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
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
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
9 matches
Mail list logo