Pattern: Use of undefined &>
Issue: -
&>
is a bash and ksh extension for redirecting both stdout and stderr. In dash and POSIX sh, use 2>&1
explicitly.
Example of incorrect code:
#!/bin/sh
ssh host cmd &> log
Example of correct code:
#!/bin/sh
ssh host cmd > log 2>&1