Hi Stephen,

On 13/8/2018 4:47 PM, Stephen Hemminger wrote:
The read -d option is a bash extension and not avaiable in other
shells. On Debian, /bin/sh is dash and checktpatches would
fail with:
./devtools/checkpatches.sh: 52: read: Illegal option -d

Fix by using awk -e and adding necessary double backslash.

Fixes: 7413e7f2aeb3 ("devtools: alert on new calls to exit from libs")
Signed-off-by: Stephen Hemminger <step...@networkplumber.org>

--snip--

The flavour of awk that's installed by default on Ubuntu is 'mawk' which does not seem to have a '-e' option. However, for anyone tryung to run checkpatch
on Ubuntu with this patch, the quickest workaround is to install 'gawk',
which does have the -e option, then this patch works great.

Rgds,
Dave.


Reply via email to