I don't know if it is bug or enhancement but
This works
if ( { ping -c 1 -w 1 192.168.0.1 } ) then
echo "LAN is up"
endif
This does not works (works but redirection does not)
if ( { ping -c 1 -w 1 192.168.0.1 >& /dev/null } ) then
echo "LAN is up"
endif
I don't know if it is bug or enhancement but
This works
This does not works (works but redirection does not)