Skip to content
New issue

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

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

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

Successfully merging this pull request may close these issues.

None yet

1 participant