commit: ce39d2261967db9fbb7a78c0e1dca4a24a05f8b1
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Aug 13 11:18:28 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 22 19:37:46 2024 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=ce39d226
Put braces around the expansion of the path variable
In accordance with the Gentoo style.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
functions.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/functions.sh b/functions.sh
index b19831d..871d846 100644
--- a/functions.sh
+++ b/functions.sh
@@ -349,7 +349,7 @@ newest()
# dash, FreeBSD sh and NetBSD sh are known to be
# non-conforming in this respect.
if { [ ! "${newest}" ] && [ -e "${path}" ]; } || [
"${path}" -nt "${newest}" ]; then
- newest=$path
+ newest=${path}
fi
done
test "${newest}" && printf '%s\n' "${newest}"
@@ -359,7 +359,7 @@ newest()
{
while IFS= read -r path; do
if { [ ! "${newest}" ] && [ -e "${path}" ]; } || [
"${path}" -nt "${newest}" ]; then
- newest=$path
+ newest=${path}
fi
done
test "${newest}" && printf '%s\n' "${newest}"
@@ -421,7 +421,7 @@ oldest()
if [ ! -e "${path}" ]; then
continue
elif [ ! "${oldest}" ] || [ "${path}" -ot "${oldest}"
]; then
- oldest=$path
+ oldest=${path}
fi
done
test "${oldest}" && printf '%s\n' "${oldest}"
@@ -433,7 +433,7 @@ oldest()
if [ ! -e "${path}" ]; then
continue
elif [ ! "${oldest}" ] || [ "${path}" -ot "${oldest}"
]; then
- oldest=$path
+ oldest=${path}
fi
done
test "${oldest}" && printf '%s\n' "${oldest}"