public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts: Improve source code readability by eliminating too many slashes
@ 2024-03-15  2:30 Bhaskar Chowdhury
  0 siblings, 0 replies; only message in thread
From: Bhaskar Chowdhury @ 2024-03-15  2:30 UTC (permalink / raw)
  To: masahiroy, nathan, nicolas, linux-kbuild, linux-kernel; +Cc: Bhaskar Chowdhury

I have tried to eliminate the convolution(visual) of forward slashes.

Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
 scripts/mkcompile_h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
index 2596f78e52ef..d6a7b22d23e3 100755
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -6,7 +6,7 @@ CC_VERSION="$2"
 LD=$3

 if test -z "$KBUILD_BUILD_USER"; then
-	LINUX_COMPILE_BY=$(whoami | sed 's/\\/\\\\/')
+	LINUX_COMPILE_BY=$(whoami | sed 's#\\#\\\\#')
 else
 	LINUX_COMPILE_BY=$KBUILD_BUILD_USER
 fi
--
2.35.8


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-15  2:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-15  2:30 [PATCH] scripts: Improve source code readability by eliminating too many slashes Bhaskar Chowdhury

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox