progit / progit2

Pro Git 2nd Edition
Other
5.69k stars 1.88k forks source link

Use new shell command substitution syntax #1915

Open vadcx opened 7 months ago

vadcx commented 7 months ago

Changes

book/05-distributed-git/sections/maintaining.asc

-$ git archive master --prefix='project/' | gzip > `git describe master`.tar.gz
+$ git archive master --prefix='project/' | gzip > "$(git describe master).tar.gz"

Context

The old command syntax is considered obsolete. We can take this opportunity to teach proper syntax going forward, also putting command output in double-quotes eliminating unintended separation into multiple arguments for space characters.

Rationale: https://unix.stackexchange.com/a/126928

No other occurrences were found:

rg --engine pcre2 '^\$.*`.+`'