From 02cae7715eded4d0b4ea2f539670838f013ff849 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 28 Jan 2026 15:21:10 +0000 Subject: [PATCH] Use $(uname -r) throughout The backtick notation is considered deprecated, I believe. We already have a handful of $(...) instances, so if nothing else it's better to stay consistent. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/pull/416 Signed-off-by: Lucas De Marchi --- libkmod/libkmod.h | 2 +- man/modprobe.8.scd | 2 +- testsuite/testsuite.h | 2 +- tools/modinfo.c | 2 +- tools/modprobe.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h index 1c0d1185..3c60e961 100644 --- a/libkmod/libkmod.h +++ b/libkmod/libkmod.h @@ -34,7 +34,7 @@ struct kmod_ctx; /** * kmod_new: * @dirname: what to consider as linux module's directory, if NULL - * defaults to $MODULE_DIRECTORY/`uname -r`. If it's relative, + * defaults to $MODULE_DIRECTORY/$(uname -r). If it's relative, * it's treated as relative to the current working directory. * Otherwise, give an absolute dirname. * @config_paths: ordered array of paths (directories or files) where diff --git a/man/modprobe.8.scd b/man/modprobe.8.scd index e397bde3..8a4e0ffb 100644 --- a/man/modprobe.8.scd +++ b/man/modprobe.8.scd @@ -20,7 +20,7 @@ modprobe - Add and remove modules from the Linux Kernel *modprobe* intelligently adds or removes a module from the Linux kernel: note that for convenience, there is no difference between \_ and - in module names (automatic underscore conversion is performed). *modprobe* looks in the module -directory @MODULE_DIRECTORY@/`uname -r` for all the modules and other files, +directory @MODULE_DIRECTORY@/$(uname -r) for all the modules and other files, except for the optional configuration files (see *modprobe.d*(5)). *modprobe* will also use module options specified on the kernel command line in the form of .