I'm using the route command to find the gateway IP address if it is up (Flags == "UG")
route --numeric | grep UG
From the command line I get
$ route --numeric | grep "UG"
0.0.0.0 192.168.1.1 0.0.0.0 UG 202 0 0 eth0
When I put the command into an exec node it returns the usage message from route, suggesting that the pipe symbol is being interpreted as a flag rather than constructing the pipeline.
route --numeric without the pipe works fine.
This worked fine on Raspbian Stretch on a Pi 3B
Is this an issue in Node-Red or in Debian?
Hardware: Raspberry Pi 4, Same on Raspberry Pi 3A+
OS: Raspbian GNU/Linux 10 (buster)