[dpdk-dev] [PATCH] checkpatches: don't assume bash syntax
Hunt, David
david.hunt at intel.com
Wed Aug 29 10:56:12 CEST 2018
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 <stephen at 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.
More information about the dev
mailing list