From 94bc4e6025b888240fe6e2af827ffcb715009b72 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 8 Jul 2018 11:54:40 +0200 Subject: [PATCH] Remove trailing comments when parsing ld.so.conf --- doc/scripts/platform.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/scripts/platform.sh b/doc/scripts/platform.sh index 1411173..841e444 100755 --- a/doc/scripts/platform.sh +++ b/doc/scripts/platform.sh @@ -66,11 +66,16 @@ _library_ldsoconf() "#"*) ;; "include "*) + #remove trailing comments + line="${line%#*}" + filename="${ldsoconf%/*}/${line#include }" [ -f "$filename" ] && _library_ldsoconf "$filename" ;; *) + #remove trailing comments + line="${line%#*}" echo "$line" ;; esac