Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use new shell command substitution syntax #1915

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vadcx
Copy link

@vadcx vadcx commented Nov 7, 2023

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

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant