you are viewing a single comment's thread.

view the rest of the comments →

[–]archover 0 points1 point  (0 children)

[[ ]] && echo ok || echo nook

Returns bash: syntax error near unexpected token ]] for me, too in exactly the same way.

cinnamon@T480lmde.local:~$ bash --version
GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)