summaryrefslogtreecommitdiffstats
path: root/make_offsets.sh
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-09-10 14:20:03 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-09-13 15:19:36 +1000
commit084e37bab1cf6fb334af3f2c8a77f0f260eb91fe (patch)
tree3d2a955eec28f6f31b25a9528497f84fb5641e81 /make_offsets.sh
parent9ff660e218345ac21f266d0a8dc8514f5d651e64 (diff)
downloadtalos-skiboot-084e37bab1cf6fb334af3f2c8a77f0f260eb91fe.tar.gz
talos-skiboot-084e37bab1cf6fb334af3f2c8a77f0f260eb91fe.zip
Use $() rather than backticks in all shell
The cool kids are all using $() these days as backticks are all backwards and uncool. Practically speaking, it makes it easier to escape things, nest things, and all the other reasons listed on http://mywiki.wooledge.org/BashFAQ/082 Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'make_offsets.sh')
-rwxr-xr-xmake_offsets.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_offsets.sh b/make_offsets.sh
index 34ba5f66..0c480be0 100755
--- a/make_offsets.sh
+++ b/make_offsets.sh
@@ -5,6 +5,6 @@ cat <<EOF
#define ASM_OFFSETS_H
/* Derived from $1 by make_offsets.sh */
-`grep '#define' $1`
+$(grep '#define' $1)
#endif /* ASM_OFFSETS_H */
EOF
OpenPOWER on IntegriCloud