summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2015-04-03 17:03:15 +0000
committerrpe <rpe@openbsd.org>2015-04-03 17:03:15 +0000
commite443cb7b1ae95e69329177336ff7c4593e1bf5ad (patch)
tree781c07c642aa37ee0c92a96842f5ff1e76f9b20e
parentIt turns out the man(7) parser suffers from unintelligible handling (diff)
downloadwireguard-openbsd-e443cb7b1ae95e69329177336ff7c4593e1bf5ad.tar.xz
wireguard-openbsd-e443cb7b1ae95e69329177336ff7c4593e1bf5ad.zip
Eleminate the last occurrences of backticks and replace constructs
like `cat file` or $(cat file) with $(<file) in places, where we can be sure that file exists. OK krw@
-rw-r--r--distrib/miniroot/install.sub10
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index a11da3edddd..21b91c8b8ca 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.825 2015/03/28 17:03:11 rpe Exp $
+# $OpenBSD: install.sub,v 1.826 2015/04/03 17:03:15 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# All rights reserved.
@@ -1559,7 +1559,7 @@ set_timezone() {
waitcgiinfo
if [[ -n $CGI_TZ ]]; then
_tz=$CGI_TZ
- [[ -n $_tz ]] && isin "$_tz" `cat $_zonefile` && TZ=$_tz
+ [[ -n $_tz ]] && isin "$_tz" $(<$_zonefile) && TZ=$_tz
fi
# If neither the base or HTTP_LIST gave a hint, and this is the
@@ -1575,7 +1575,7 @@ set_timezone() {
continue;;
esac
- while isin "$_zonepath/" $(cat $_zonefile); do
+ while isin "$_zonepath/" $(<$_zonefile); do
ask "What sub-timezone of '$_zonepath' are you in? ('?' for list)"
_zsed=$(echo $_zonepath/ | sed 's,/,\\/,g')
resp=${resp%%*(/)}
@@ -1586,7 +1586,7 @@ set_timezone() {
esac
done
- if isin "$_zonepath" $(cat $_zonefile); then
+ if isin "$_zonepath" $(<$_zonefile); then
TZ=${_zonepath#$_zoneroot}
return
fi
@@ -2134,7 +2134,7 @@ if ! $AUTO; then
(
while :; do
lock
- if test -e /tmp/update && [[ "`dmesg`" != "`cat /tmp/update`" ]]; then
+ if test -e /tmp/update && [[ "$(dmesg)" != "$(</tmp/update)" ]]; then
dmesg >/tmp/update
kill -TERM 2>/dev/null $$ || exit 1
fi