diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eefeac4c18..d751c052ce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-04-29 Simon Marchi + + * gdbarch.sh: Use $(...) instead of `...`. + 2020-04-29 Simon Marchi * gdbarch.sh: Use double quotes around variables. diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index a934a7aa6b..0e89bd1900 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -67,7 +67,7 @@ ${line}" # The semantics of IFS varies between different SH's. Some # treat ``;;' as three fields while some treat it as just two. # Work around this by eliminating ``;;'' .... - line="`echo "${line}" | sed -e 's/;;/; ;/g' -e 's/;;/; ;/g'`" + line="$(echo "${line}" | sed -e 's/;;/; ;/g' -e 's/;;/; ;/g')" OFS="${IFS}" ; IFS="[;]" eval read "${read}" <%s = %s;\n" "$function" "$function" printf "}\n" @@ -2192,7 +2192,7 @@ do printf "\n" printf "void\n" printf "set_gdbarch_%s (struct gdbarch *gdbarch,\n" "$function" - printf " `echo "$function" | sed -e 's/./ /g'` %s %s)\n" "$returntype" "$function" + printf " %s %s %s)\n" "$(echo "$function" | sed -e 's/./ /g')" "$returntype" "$function" printf "{\n" printf " gdbarch->%s = %s;\n" "$function" "$function" printf "}\n"