In the rolling release version vyOS 2025.06.04-0020, many commands in op mode are failing with the following error:
vyos@vyos:~$ show interfaces pppoe pppoe0 statistics -vbash: syntax error near unexpected token `then' vyos@vyos:~$ show interfaces bonding bond0 detail -vbash: syntax error near unexpected token `then' vyos@vyos:~$ show interfaces sstpc sstpc0 statistics -vbash: syntax error near unexpected token `then' vyos@vyos:~$ show login level -vbash: syntax error near unexpected token `then' vyos@vyos:~$ show webproxy log -vbash: syntax error near unexpected token `then' vyos@vyos:~$ show webproxy update-log -vbash: syntax error near unexpected token `then' vyos@vyos:~$ monitor log webproxy access-log -vbash: syntax error near unexpected token `then' vyos@vyos:~$ monitor log webproxy cache-log -vbash: syntax error near unexpected token `then' vyos@vyos:~$ install mok -vbash: syntax error near unexpected token `then' vyos@vyos:~$ monitor log certbot -vbash: syntax error near unexpected token `then' vyos@vyos:~$ update suricata -vbash: syntax error near unexpected token `then'
It appears that any command in op mode that contains an if statement or conditional logic is failing with this syntax error.
The same commands work correctly in the previous rolling release version VyOS 2025.05.23-0019-rolling(I upgraded from this version) . I have installed a new vyos instance without any configrations and tested those commands with same errors.