Re: [PATCH net-next] selftests: net: Remove unnecessary backslashes in fq_band_pktlimit.sh
From: Simon Horman
Date: Thu Mar 26 2026 - 14:44:19 EST
On Wed, Mar 25, 2026 at 02:20:28AM +0900, Yohei Kojima wrote:
> Address "grep: warning: stray \ before white space" warning from GNU
> grep 3.12. This warns the misplaced backslashes before whitespaces
> (e.g. \\' ' or '\ ') which leads to unspecified behavior [1].
>
> We can just remove the backslashes before whitespaces as POSIX says:
>
> Enclosing characters in single-quotes ('') shall preserve the literal
> value of each character within the single-quotes.
>
> and bourne-compatible shells behave so.
>
> [1]: https://lists.gnu.org/r/bug-gnulib/2022-05/msg00057.html
>
> Signed-off-by: Yohei Kojima <yk@xxxxxxxxx>
> ---
> I tested the patch with bash 5.3.9. I couldn't test it with dash because
> the test depends on a bash extension with "if [[ $# -eq 0 ]]".
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>