progit2 icon indicating copy to clipboard operation
progit2 copied to clipboard

Use new shell command substitution syntax

Open vadcx opened this issue 2 years ago • 0 comments

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 '^\$.*`.+`'

vadcx avatar Nov 07 '23 18:11 vadcx