diff options
| author | Axel Rasmussen <[email protected]> | 2022-04-29 06:16:11 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-29 06:16:11 +0000 |
| commit | 241ec63a9a0fbb39292ea1dd2d07f8dabedfe3df (patch) | |
| tree | ca5cb53b2115d03939158022527a8e0f08718be5 /mm/debug_vm_pgtable.c | |
| parent | selftests: vm: refactor run_vmtests.sh to reduce boilerplate (diff) | |
| download | kernel-241ec63a9a0fbb39292ea1dd2d07f8dabedfe3df.tar.gz kernel-241ec63a9a0fbb39292ea1dd2d07f8dabedfe3df.zip | |
selftests: vm: fix shellcheck warnings in run_vmtests.sh
These might not be issues yet, but they make the script more fragile.
Also by fixing them we give a better example to future readers, who might
copy/paste or otherwise re-use snippets from our script.
- Use "read -r", since we don't ever want read to be interpreting '\'
characters as escape sequences...
- Quote variables, to deal with spaces properly.
- Use $() instead of the older and harder-to-nest ``.
- Get rid of superfluous "$" prefixes inside arithmetic $(()).
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Axel Rasmussen <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/debug_vm_pgtable.c')
0 files changed, 0 insertions, 0 deletions
