Skip to content

Commit 02cae77

Browse files
evelikovlucasdemarchi
authored andcommitted
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 <emil.l.velikov@gmail.com> Link: https://github.com/kmod-project/kmod/pull/pull/416 Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
1 parent c901291 commit 02cae77

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

libkmod/libkmod.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct kmod_ctx;
3434
/**
3535
* kmod_new:
3636
* @dirname: what to consider as linux module's directory, if NULL
37-
* defaults to $MODULE_DIRECTORY/`uname -r`. If it's relative,
37+
* defaults to $MODULE_DIRECTORY/$(uname -r). If it's relative,
3838
* it's treated as relative to the current working directory.
3939
* Otherwise, give an absolute dirname.
4040
* @config_paths: ordered array of paths (directories or files) where

man/modprobe.8.scd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ modprobe - Add and remove modules from the Linux Kernel
2020
*modprobe* intelligently adds or removes a module from the Linux kernel: note
2121
that for convenience, there is no difference between \_ and - in module names
2222
(automatic underscore conversion is performed). *modprobe* looks in the module
23-
directory @MODULE_DIRECTORY@/`uname -r` for all the modules and other files,
23+
directory @MODULE_DIRECTORY@/$(uname -r) for all the modules and other files,
2424
except for the optional configuration files (see *modprobe.d*(5)). *modprobe* will
2525
also use module options specified on the kernel command line in the form of
2626
<module>.<option> and blacklists in the form of modprobe.blacklist=<module>.

testsuite/testsuite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enum test_config {
2222
TC_ROOTFS = 0,
2323

2424
/*
25-
* What's the desired string to be returned by `uname -r`. It will
25+
* What's the desired string to be returned by $(uname -r). It will
2626
* trap calls to uname(3P) by LD_PRELOAD'ing uname.so and then filling
2727
* in the information in u.release.
2828
*/

tools/modinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static void help(void)
336336
"\t-0, --null Use \\0 instead of \\n\n"
337337
"\t-m, --modname Handle argument as module name instead of alias or filename\n"
338338
"\t-F, --field FIELD Print only provided FIELD\n"
339-
"\t-k, --set-version VERSION Use VERSION instead of `uname -r`\n"
339+
"\t-k, --set-version VERSION Use VERSION instead of $(uname -r)\n"
340340
"\t-b, --basedir DIR Use DIR as filesystem root for " MODULE_DIRECTORY
341341
"\n"
342342
"\t-V, --version Show version\n"

tools/modprobe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static void help(void)
128128
"\t-C, --config FILE Use FILE instead of default search paths\n"
129129
"\t-d, --dirname DIR Use DIR as filesystem root for " MODULE_DIRECTORY
130130
"\n"
131-
"\t-S, --set-version VERSION Use VERSION instead of `uname -r`\n"
131+
"\t-S, --set-version VERSION Use VERSION instead of $(uname -r)\n"
132132

133133
"\t-s, --syslog print to syslog, not stderr\n"
134134
"\t-q, --quiet disable messages\n"

0 commit comments

Comments
 (0)