Re:Re: Behaviour of an empty conditional expression is undefined?

2023-02-24 Thread Qingsheng Huang
" wrote: >On 2/23/23 3:26 AM, Qingsheng Huang wrote: >> Here shows the behavious of empty conditional expressions: >> >> >> infinite:~# [[ ]] >> -bash: syntax error near unexpected

Behaviour of an empty conditional expression is undefined?

2023-02-23 Thread Qingsheng Huang
Here shows the behavious of empty conditional expressions: infinite:~# [[ ]] -bash: syntax error near unexpected token `]]' infinite:~# [[ ]] infinite:~# [[ "$A" ]] -bash: syntax error near unexpected token `"$A"' infinite:~#

Behaviour of an empty conditional expression is undefined?

2023-02-23 Thread Qingsheng Huang
Here shows the output of conditional expressions: infinite:~# [[ ]] -bash: syntax error near unexpected token `]]' infinite:~# [[ ]] infinite:~# [[ "$A" ]] -bash: syntax error near unexpected token `"$A"' infinite:~# [[ "$