{"thread":{"id":"36288","subject":"[PATCH 001/144] check-builtins.sh: use the $( ... ) construct for command substitution","startedAt":"2014-03-25T08:24:05Z","lastAt":"2014-03-29T23:50:47Z","messageCount":113,"participants":["Elia Pinto","Matthieu Moy","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":144},"messages":[{"id":"237633","messageId":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":null,"subject":"[PATCH 000/144] Use the $( ... ) construct for command substitution instead of using the back-quotes","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:05Z","receivedAt":"2014-03-25T08:24:05Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"This patch series changes everywhere the back-quotes construct for command\nsubstitution with the $( ... ).  The Git CodingGuidelines prefer \nthe $( ... ) construct for command substitution instead of using the back-quotes\n, or grave accents (`..`).\n    \nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell. Because this construct uses distinct\nopening and closing delimiters, it is much easier to follow. \nAlso now the embedded double quotes no longer need escaping.\n\nThe patch is simple but involves a large number of files with different authors. \nBeing simple I think it is wasteful to cc a large number of different people\nfor doing a review. \n\nElia Pinto (144):\n  check-builtins.sh: use the $( ... ) construct for command\n    substitution\n  git-am.sh: use the $( ... ) construct for command substitution\n  git-pull.sh: use the $( ... ) construct for command substitution\n  git-rebase--merge.sh: use the $( ... ) construct for command\n    substitution\n  git-rebase.sh: use the $( ... ) construct for command substitution\n  git-stash.sh: use the $( ... ) construct for command substitution\n  git-web--browse.sh: use the $( ... ) construct for command\n    substitution\n  unimplemented.sh: use the $( ... ) construct for command substitution\n  t0001-init.sh: use the $( ... ) construct for command substitution\n  t0010-racy-git.sh: use the $( ... ) construct for command\n    substitution\n  t0020-crlf.sh: use the $( ... ) construct for command substitution\n  t0025-crlf-auto.sh: use the $( ... ) construct for command\n    substitution\n  t0026-eol-config.sh: use the $( ... ) construct for command\n    substitution\n  t0030-stripspace.sh: use the $( ... ) construct for command\n    substitution\n  t0204-gettext-reencode-sanity.sh: use the $( ... ) construct for\n    command substitution\n  t0300-credentials.sh: use the $( ... ) construct for command\n    substitution\n  t1000-read-tree-m-3way.sh: use the $( ... ) construct for command\n    substitution\n  t1001-read-tree-m-2way.sh: use the $( ... ) construct for command\n    substitution\n  t1002-read-tree-m-u-2way.sh: use the $( ... ) construct for command\n    substitution\n  t1003-read-tree-prefix.sh: use the $( ... ) construct for command\n    substitution\n  t1004-read-tree-m-u-wf.sh: use the $( ... ) construct for command\n    substitution\n  t1020-subdirectory.sh: use the $( ... ) construct for command\n    substitution\n  t1050-large.sh: use the $( ... ) construct for command substitution\n  t1100-commit-tree-options.sh: use the $( ... ) construct for command\n    substitution\n  t1401-symbolic-ref.sh: use the $( ... ) construct for command\n    substitution\n  t1410-reflog.sh: use the $( ... ) construct for command substitution\n  t1511-rev-parse-caret.sh: use the $( ... ) construct for command\n    substitution\n  t1512-rev-parse-disambiguation.sh: use the $( ... ) construct for\n    command substitution\n  t2102-update-index-symlinks.sh: use the $( ... ) construct for\n    command substitution\n  t3030-merge-recursive.sh: use the $( ... ) construct for command\n    substitution\n  t3100-ls-tree-restrict.sh: use the $( ... ) construct for command\n    substitution\n  t3101-ls-tree-dirname.sh: use the $( ... ) construct for command\n    substitution\n  t3210-pack-refs.sh: use the $( ... ) construct for command\n    substitution\n  t3403-rebase-skip.sh: use the $( ... ) construct for command\n    substitution\n  t3511-cherry-pick-x.sh: use the $( ... ) construct for command\n    substitution\n  t3600-rm.sh: use the $( ... ) construct for command substitution\n  t3700-add.sh: use the $( ... ) construct for command substitution\n  t3905-stash-include-untracked.sh: use the $( ... ) construct for\n    command substitution\n  t3910-mac-os-precompose.sh: use the $( ... ) construct for command\n    substitution\n  t4006-diff-mode.sh: use the $( ... ) construct for command\n    substitution\n  t4010-diff-pathspec.sh: use the $( ... ) construct for command\n    substitution\n  t4012-diff-binary.sh: use the $( ... ) construct for command\n    substitution\n  t4013-diff-various.sh: use the $( ... ) construct for command\n    substitution\n  t4014-format-patch.sh: use the $( ... ) construct for command\n    substitution\n  t4036-format-patch-signer-mime.sh: use the $( ... ) construct for\n    command substitution\n  t4038-diff-combined.sh: use the $( ... ) construct for command\n    substitution\n  t4057-diff-combined-paths.sh: use the $( ... ) construct for command\n    substitution\n  t4116-apply-reverse.sh: use the $( ... ) construct for command\n    substitution\n  t4119-apply-config.sh: use the $( ... ) construct for command\n    substitution\n  t4204-patch-id.sh: use the $( ... ) construct for command\n    substitution\n  t5000-tar-tree.sh: use the $( ... ) construct for command\n    substitution\n  t5003-archive-zip.sh: use the $( ... ) construct for command\n    substitution\n  t5100-mailinfo.sh: use the $( ... ) construct for command\n    substitution\n  t5300-pack-object.sh: use the $( ... ) construct for command\n    substitution\n  t5301-sliding-window.sh: use the $( ... ) construct for command\n    substitution\n  t5302-pack-index.sh: use the $( ... ) construct for command\n    substitution\n  t5303-pack-corruption-resilience.sh: use the $( ... ) construct for\n    command substitution\n  t5304-prune.sh: use the $( ... ) construct for command substitution\n  t5305-include-tag.sh: use the $( ... ) construct for command\n    substitution\n  t5500-fetch-pack.sh: use the $( ... ) construct for command\n    substitution\n  t5505-remote.sh: use the $( ... ) construct for command substitution\n  t5506-remote-groups.sh: use the $( ... ) construct for command\n    substitution\n  t5510-fetch.sh: use the $( ... ) construct for command substitution\n  t5515-fetch-merge-logic.sh: use the $( ... ) construct for command\n    substitution\n  t5516-fetch-push.sh: use the $( ... ) construct for command\n    substitution\n  t5517-push-mirror.sh: use the $( ... ) construct for command\n    substitution\n  t5520-pull.sh: use the $( ... ) construct for command substitution\n  t5522-pull-symlink.sh: use the $( ... ) construct for command\n    substitution\n  t5530-upload-pack-error.sh: use the $( ... ) construct for command\n    substitution\n  t5537-fetch-shallow.sh: use the $( ... ) construct for command\n    substitution\n  t5538-push-shallow.sh: use the $( ... ) construct for command\n    substitution\n  t5550-http-fetch-dumb.sh: use the $( ... ) construct for command\n    substitution\n  t5551-http-fetch-smart.sh: use the $( ... ) construct for command\n    substitution\n  t5570-git-daemon.sh: use the $( ... ) construct for command\n    substitution\n  t5601-clone.sh: use the $( ... ) construct for command substitution\n  t5700-clone-reference.sh: use the $( ... ) construct for command\n    substitution\n  t5710-info-alternate.sh: use the $( ... ) construct for command\n    substitution\n  t5900-repo-selection.sh: use the $( ... ) construct for command\n    substitution\n  t6001-rev-list-graft.sh: use the $( ... ) construct for command\n    substitution\n  t6002-rev-list-bisect.sh: use the $( ... ) construct for command\n    substitution\n  t6015-rev-list-show-all-parents.sh: use the $( ... ) construct for\n    command substitution\n  t6032-merge-large-rename.sh: use the $( ... ) construct for command\n    substitution\n  t6034-merge-rename-nocruft.sh: use the $( ... ) construct for command\n    substitution\n  t6111-rev-list-treesame.sh: use the $( ... ) construct for command\n    substitution\n  t6132-pathspec-exclude.sh: use the $( ... ) construct for command\n    substitution\n  t7001-mv.sh: use the $( ... ) construct for command substitution\n  t7003-filter-branch.sh: use the $( ... ) construct for command\n    substitution\n  t7004-tag.sh: use the $( ... ) construct for command substitution\n  t7006-pager.sh: use the $( ... ) construct for command substitution\n  t7103-reset-bare.sh: use the $( ... ) construct for command\n    substitution\n  t7406-submodule-update.sh: use the $( ... ) construct for command\n    substitution\n  t7408-submodule-reference.sh: use the $( ... ) construct for command\n    substitution\n  t7504-commit-msg-hook.sh: use the $( ... ) construct for command\n    substitution\n  t7505-prepare-commit-msg-hook.sh: use the $( ... ) construct for\n    command substitution\n  t7602-merge-octopus-many.sh: use the $( ... ) construct for command\n    substitution\n  t7700-repack.sh: use the $( ... ) construct for command substitution\n  t8003-blame-corner-cases.sh: use the $( ... ) construct for command\n    substitution\n  t9001-send-email.sh: use the $( ... ) construct for command\n    substitution\n  t9101-git-svn-props.sh: use the $( ... ) construct for command\n    substitution\n  t9104-git-svn-follow-parent.sh: use the $( ... ) construct for\n    command substitution\n  t9105-git-svn-commit-diff.sh: use the $( ... ) construct for command\n    substitution\n  t9107-git-svn-migrate.sh: use the $( ... ) construct for command\n    substitution\n  t9108-git-svn-glob.sh: use the $( ... ) construct for command\n    substitution\n  t9109-git-svn-multi-glob.sh: use the $( ... ) construct for command\n    substitution\n  t9110-git-svn-use-svm-props.sh: use the $( ... ) construct for\n    command substitution\n  t9114-git-svn-dcommit-merge.sh: use the $( ... ) construct for\n    command substitution\n  t9118-git-svn-funky-branch-names.sh: use the $( ... ) construct for\n    command substitution\n  t9119-git-svn-info.sh: use the $( ... ) construct for command\n    substitution\n  t9129-git-svn-i18n-commitencoding.sh: use the $( ... ) construct for\n    command substitution\n  t9130-git-svn-authors-file.sh: use the $( ... ) construct for command\n    substitution\n  t9132-git-svn-broken-symlink.sh: use the $( ... ) construct for\n    command substitution\n  t9137-git-svn-dcommit-clobber-series.sh: use the $( ... ) construct\n    for command substitution\n  t9138-git-svn-authors-prog.sh: use the $( ... ) construct for command\n    substitution\n  t9145-git-svn-master-branch.sh: use the $( ... ) construct for\n    command substitution\n  t9150-svk-mergetickets.sh: use the $( ... ) construct for command\n    substitution\n  t9300-fast-import.sh: use the $( ... ) construct for command\n    substitution\n  t9350-fast-export.sh: use the $( ... ) construct for command\n    substitution\n  t9501-gitweb-standalone-http-status.sh: use the $( ... ) construct\n    for command substitution\n  t9901-git-web--browse.sh: use the $( ... ) construct for command\n    substitution\n  test-lib-functions.sh: use the $( ... ) construct for command\n    substitution\n  lib-credential.sh: use the $( ... ) construct for command\n    substitution\n  lib-cvs.sh: use the $( ... ) construct for command substitution\n  lib-gpg.sh: use the $( ... ) construct for command substitution\n  p5302-pack-index.sh: use the $( ... ) construct for command\n    substitution\n  howto-index.sh: use the $( ... ) construct for command substitution\n  install-webdoc.sh: use the $( ... ) construct for command\n    substitution\n  git-checkout.sh: use the $( ... ) construct for command substitution\n  git-clone.sh: use the $( ... ) construct for command substitution\n  git-commit.sh: use the $( ... ) construct for command substitution\n  git-fetch.sh: use the $( ... ) construct for command substitution\n  git-ls-remote.sh: use the $( ... ) construct for command substitution\n  git-merge.sh: use the $( ... ) construct for command substitution\n  git-repack.sh: use the $( ... ) construct for command substitution\n  git-resolve.sh: use the $( ... ) construct for command substitution\n  git-revert.sh: use the $( ... ) construct for command substitution\n  git-tag.sh: use the $( ... ) construct for command substitution\n  t9360-mw-to-git-clone.sh: use the $( ... ) construct for command\n    substitution\n  t9362-mw-to-git-utf8.sh: use the $( ... ) construct for command\n    substitution\n  t9365-continuing-queries.sh: use the $( ... ) construct for command\n    substitution\n  test-gitmw-lib.sh: use the $( ... ) construct for command\n    substitution\n  t7900-subtree.sh: use the $( ... ) construct for command substitution\n  appp.sh: use the $( ... ) construct for command substitution\n  txt-to-pot.sh: use the $( ... ) construct for command substitution\n  t9100-git-svn-basic.sh: use the $( ... ) construct for command\n    substitution\n\n Documentation/howto-index.sh                    |   12 ++--\n Documentation/install-webdoc.sh                 |    6 +-\n check-builtins.sh                               |    4 +-\n contrib/examples/git-checkout.sh                |    8 +--\n contrib/examples/git-clone.sh                   |   20 +++----\n contrib/examples/git-commit.sh                  |   10 ++--\n contrib/examples/git-fetch.sh                   |    6 +-\n contrib/examples/git-ls-remote.sh               |    4 +-\n contrib/examples/git-merge.sh                   |    4 +-\n contrib/examples/git-repack.sh                  |    2 +-\n contrib/examples/git-resolve.sh                 |    2 +-\n contrib/examples/git-revert.sh                  |    2 +-\n contrib/examples/git-tag.sh                     |    2 +-\n contrib/mw-to-git/t/t9360-mw-to-git-clone.sh    |   14 ++---\n contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh     |    4 +-\n contrib/mw-to-git/t/t9365-continuing-queries.sh |    2 +-\n contrib/mw-to-git/t/test-gitmw-lib.sh           |    6 +-\n contrib/subtree/t/t7900-subtree.sh              |    2 +-\n contrib/thunderbird-patch-inline/appp.sh        |   14 ++---\n git-am.sh                                       |   30 +++++-----\n git-gui/po/glossary/txt-to-pot.sh               |    4 +-\n git-pull.sh                                     |    2 +-\n git-rebase--merge.sh                            |    4 +-\n git-rebase.sh                                   |    8 +--\n git-stash.sh                                    |    2 +-\n git-web--browse.sh                              |    6 +-\n t/lib-credential.sh                             |    2 +-\n t/lib-cvs.sh                                    |    2 +-\n t/lib-gpg.sh                                    |    2 +-\n t/perf/p5302-pack-index.sh                      |    2 +-\n t/t0001-init.sh                                 |   12 ++--\n t/t0010-racy-git.sh                             |    4 +-\n t/t0020-crlf.sh                                 |   42 +++++++-------\n t/t0025-crlf-auto.sh                            |   38 ++++++-------\n t/t0026-eol-config.sh                           |   20 +++----\n t/t0030-stripspace.sh                           |   20 +++----\n t/t0204-gettext-reencode-sanity.sh              |    2 +-\n t/t0300-credentials.sh                          |    2 +-\n t/t1000-read-tree-m-3way.sh                     |    4 +-\n t/t1001-read-tree-m-2way.sh                     |   18 +++---\n t/t1002-read-tree-m-u-2way.sh                   |   10 ++--\n t/t1003-read-tree-prefix.sh                     |    2 +-\n t/t1004-read-tree-m-u-wf.sh                     |    8 +--\n t/t1020-subdirectory.sh                         |   22 ++++----\n t/t1050-large.sh                                |    4 +-\n t/t1100-commit-tree-options.sh                  |    4 +-\n t/t1401-symbolic-ref.sh                         |    2 +-\n t/t1410-reflog.sh                               |   24 ++++----\n t/t1511-rev-parse-caret.sh                      |    4 +-\n t/t1512-rev-parse-disambiguation.sh             |    8 +--\n t/t2102-update-index-symlinks.sh                |    2 +-\n t/t3030-merge-recursive.sh                      |    2 +-\n t/t3100-ls-tree-restrict.sh                     |    2 +-\n t/t3101-ls-tree-dirname.sh                      |    2 +-\n t/t3210-pack-refs.sh                            |    2 +-\n t/t3403-rebase-skip.sh                          |    2 +-\n t/t3511-cherry-pick-x.sh                        |   14 ++---\n t/t3600-rm.sh                                   |    4 +-\n t/t3700-add.sh                                  |   16 +++---\n t/t3905-stash-include-untracked.sh              |    4 +-\n t/t3910-mac-os-precompose.sh                    |   16 +++---\n t/t4006-diff-mode.sh                            |    2 +-\n t/t4010-diff-pathspec.sh                        |    4 +-\n t/t4012-diff-binary.sh                          |   16 +++---\n t/t4013-diff-various.sh                         |    6 +-\n t/t4014-format-patch.sh                         |   10 ++--\n t/t4036-format-patch-signer-mime.sh             |    2 +-\n t/t4038-diff-combined.sh                        |    2 +-\n t/t4057-diff-combined-paths.sh                  |    2 +-\n t/t4116-apply-reverse.sh                        |   12 ++--\n t/t4119-apply-config.sh                         |    2 +-\n t/t4204-patch-id.sh                             |    4 +-\n t/t5000-tar-tree.sh                             |    6 +-\n t/t5003-archive-zip.sh                          |    2 +-\n t/t5100-mailinfo.sh                             |   12 ++--\n t/t5300-pack-object.sh                          |   18 +++---\n t/t5301-sliding-window.sh                       |   14 ++---\n t/t5302-pack-index.sh                           |   34 ++++++------\n t/t5303-pack-corruption-resilience.sh           |    8 +--\n t/t5304-prune.sh                                |    2 +-\n t/t5305-include-tag.sh                          |    8 +--\n t/t5500-fetch-pack.sh                           |   16 +++---\n t/t5505-remote.sh                               |    2 +-\n t/t5506-remote-groups.sh                        |    2 +-\n t/t5510-fetch.sh                                |   10 ++--\n t/t5515-fetch-merge-logic.sh                    |    4 +-\n t/t5516-fetch-push.sh                           |    4 +-\n t/t5517-push-mirror.sh                          |    2 +-\n t/t5520-pull.sh                                 |   10 ++--\n t/t5522-pull-symlink.sh                         |    2 +-\n t/t5530-upload-pack-error.sh                    |    2 +-\n t/t5537-fetch-shallow.sh                        |    4 +-\n t/t5538-push-shallow.sh                         |    4 +-\n t/t5550-http-fetch-dumb.sh                      |    8 +--\n t/t5551-http-fetch-smart.sh                     |    2 +-\n t/t5570-git-daemon.sh                           |    8 +--\n t/t5601-clone.sh                                |    2 +-\n t/t5700-clone-reference.sh                      |    2 +-\n t/t5710-info-alternate.sh                       |    2 +-\n t/t5900-repo-selection.sh                       |    2 +-\n t/t6001-rev-list-graft.sh                       |   12 ++--\n t/t6002-rev-list-bisect.sh                      |    6 +-\n t/t6015-rev-list-show-all-parents.sh            |    6 +-\n t/t6032-merge-large-rename.sh                   |    2 +-\n t/t6034-merge-rename-nocruft.sh                 |    2 +-\n t/t6111-rev-list-treesame.sh                    |    2 +-\n t/t6132-pathspec-exclude.sh                     |    2 +-\n t/t7001-mv.sh                                   |    4 +-\n t/t7003-filter-branch.sh                        |    6 +-\n t/t7004-tag.sh                                  |   16 +++---\n t/t7006-pager.sh                                |    2 +-\n t/t7103-reset-bare.sh                           |    2 +-\n t/t7406-submodule-update.sh                     |    4 +-\n t/t7408-submodule-reference.sh                  |    2 +-\n t/t7504-commit-msg-hook.sh                      |    2 +-\n t/t7505-prepare-commit-msg-hook.sh              |   32 +++++------\n t/t7602-merge-octopus-many.sh                   |    8 +--\n t/t7700-repack.sh                               |    4 +-\n t/t8003-blame-corner-cases.sh                   |    4 +-\n t/t9001-send-email.sh                           |   10 ++--\n t/t9100-git-svn-basic.sh                        |   24 ++++----\n t/t9101-git-svn-props.sh                        |   30 +++++-----\n t/t9104-git-svn-follow-parent.sh                |   48 ++++++++--------\n t/t9105-git-svn-commit-diff.sh                  |    4 +-\n t/t9107-git-svn-migrate.sh                      |   16 +++---\n t/t9108-git-svn-glob.sh                         |   20 +++----\n t/t9109-git-svn-multi-glob.sh                   |   32 +++++------\n t/t9110-git-svn-use-svm-props.sh                |    2 +-\n t/t9114-git-svn-dcommit-merge.sh                |   12 ++--\n t/t9118-git-svn-funky-branch-names.sh           |    2 +-\n t/t9119-git-svn-info.sh                         |    2 +-\n t/t9129-git-svn-i18n-commitencoding.sh          |    4 +-\n t/t9130-git-svn-authors-file.sh                 |   12 ++--\n t/t9132-git-svn-broken-symlink.sh               |    4 +-\n t/t9137-git-svn-dcommit-clobber-series.sh       |   24 ++++----\n t/t9138-git-svn-authors-prog.sh                 |    2 +-\n t/t9145-git-svn-master-branch.sh                |    4 +-\n t/t9150-svk-mergetickets.sh                     |    2 +-\n t/t9300-fast-import.sh                          |   68 +++++++++++------------\n t/t9350-fast-export.sh                          |    6 +-\n t/t9501-gitweb-standalone-http-status.sh        |    6 +-\n t/t9901-git-web--browse.sh                      |    2 +-\n t/test-lib-functions.sh                         |    8 +--\n unimplemented.sh                                |    2 +-\n 144 files changed, 611 insertions(+), 611 deletions(-)\n\n-- \n1.7.10.4\n"},{"id":"237531","messageId":"1395735989-3396-2-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 001/144] check-builtins.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:06Z","receivedAt":"2014-03-25T08:24:06Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n check-builtins.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/check-builtins.sh b/check-builtins.sh\nindex d6fe6cf..07cff69 100755\n--- a/check-builtins.sh\n+++ b/check-builtins.sh\n@@ -14,8 +14,8 @@ sort |\n     bad=0\n     while read builtin\n     do\n-\tbase=`expr \"$builtin\" : 'git-\\(.*\\)'`\n-\tx=`sed -ne 's/.*{ \"'$base'\", \\(cmd_[^, ]*\\).*/'$base'\t\\1/p' git.c`\n+\tbase=$(expr \"$builtin\" : 'git-\\(.*\\)')\n+\tx=$(sed -ne 's/.*{ \"'$base'\", \\(cmd_[^, ]*\\).*/'$base'\t\\1/p' git.c)\n \tif test -z \"$x\"\n \tthen\n \t\techo \"$base is builtin but not listed in git.c command list\"\n-- \n1.7.10.4\n"},{"id":"237636","messageId":"1395735989-3396-3-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 002/144] git-am.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:07Z","receivedAt":"2014-03-25T08:24:07Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n git-am.sh |   30 +++++++++++++++---------------\n 1 file changed, 15 insertions(+), 15 deletions(-)\n\ndiff --git a/git-am.sh b/git-am.sh\nindex 78517f2..1b638e8 100755\n--- a/git-am.sh\n+++ b/git-am.sh\n@@ -125,7 +125,7 @@ cannot_fallback () {\n }\n \n fall_back_3way () {\n-    O_OBJECT=`cd \"$GIT_OBJECT_DIRECTORY\" && pwd`\n+    O_OBJECT=$(cd \"$GIT_OBJECT_DIRECTORY\" && pwd)\n \n     rm -fr \"$dotest\"/patch-merge-*\n     mkdir \"$dotest/patch-merge-tmp-dir\"\n@@ -275,7 +275,7 @@ split_patches () {\n \t\tthen\n \t\t\tclean_abort \"$(gettext \"Only one StGIT patch series can be applied at once\")\"\n \t\tfi\n-\t\tseries_dir=`dirname \"$1\"`\n+\t\tseries_dir=$(dirname \"$1\")\n \t\tseries_file=\"$1\"\n \t\tshift\n \t\t{\n@@ -298,8 +298,8 @@ split_patches () {\n \t\tthis=0\n \t\tfor stgit in \"$@\"\n \t\tdo\n-\t\t\tthis=`expr \"$this\" + 1`\n-\t\t\tmsgnum=`printf \"%0${prec}d\" $this`\n+\t\t\tthis=$(expr \"$this\" + 1)\n+\t\t\tmsgnum=$(printf \"%0${prec}d\" $this)\n \t\t\t# Perl version of StGIT parse_patch. The first nonemptyline\n \t\t\t# not starting with Author, From or Date is the\n \t\t\t# subject, and the body starts with the next nonempty\n@@ -644,26 +644,26 @@ fi\n git_apply_opt=$(cat \"$dotest/apply-opt\")\n if test \"$(cat \"$dotest/sign\")\" = t\n then\n-\tSIGNOFF=`git var GIT_COMMITTER_IDENT | sed -e '\n+\tSIGNOFF=$(git var GIT_COMMITTER_IDENT | sed -e '\n \t\t\ts/>.*/>/\n \t\t\ts/^/Signed-off-by: /'\n-\t\t`\n+\t\t)\n else\n \tSIGNOFF=\n fi\n \n-last=`cat \"$dotest/last\"`\n-this=`cat \"$dotest/next\"`\n+last=$(cat \"$dotest/last\")\n+this=$(cat \"$dotest/next\")\n if test \"$skip\" = t\n then\n-\tthis=`expr \"$this\" + 1`\n+\tthis=$(expr \"$this\" + 1)\n \tresume=\n fi\n \n while test \"$this\" -le \"$last\"\n do\n-\tmsgnum=`printf \"%0${prec}d\" $this`\n-\tnext=`expr \"$this\" + 1`\n+\tmsgnum=$(printf \"%0${prec}d\" $this)\n+\tnext=$(expr \"$this\" + 1)\n \ttest -f \"$dotest/$msgnum\" || {\n \t\tresume=\n \t\tgo_next\n@@ -739,16 +739,16 @@ To restore the original branch and stop patching run \\\"\\$cmdline --abort\\\".\"\n \t'')\n \t    if test '' != \"$SIGNOFF\"\n \t    then\n-\t\tLAST_SIGNED_OFF_BY=`\n+\t\tLAST_SIGNED_OFF_BY=$(\n \t\t    sed -ne '/^Signed-off-by: /p' \\\n \t\t    \"$dotest/msg-clean\" |\n \t\t    sed -ne '$p'\n-\t\t`\n-\t\tADD_SIGNOFF=`\n+\t\t)\n+\t\tADD_SIGNOFF=$(\n \t\t    test \"$LAST_SIGNED_OFF_BY\" = \"$SIGNOFF\" || {\n \t\t    test '' = \"$LAST_SIGNED_OFF_BY\" && echo\n \t\t    echo \"$SIGNOFF\"\n-\t\t}`\n+\t\t})\n \t    else\n \t\tADD_SIGNOFF=\n \t    fi\n-- \n1.7.10.4\n"},{"id":"237637","messageId":"1395735989-3396-4-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 003/144] git-pull.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:08Z","receivedAt":"2014-03-25T08:24:08Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n git-pull.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/git-pull.sh b/git-pull.sh\nindex 6cd8ebc..cfc589d 100755\n--- a/git-pull.sh\n+++ b/git-pull.sh\n@@ -108,7 +108,7 @@ do\n \t-s|--s|--st|--str|--stra|--strat|--strate|--strateg|--strategy)\n \t\tcase \"$#,$1\" in\n \t\t*,*=*)\n-\t\t\tstrategy=`expr \"z$1\" : 'z-[^=]*=\\(.*\\)'` ;;\n+\t\t\tstrategy=$(expr \"z$1\" : 'z-[^=]*=\\(.*\\)') ;;\n \t\t1,*)\n \t\t\tusage ;;\n \t\t*)\n-- \n1.7.10.4\n"},{"id":"237634","messageId":"1395735989-3396-5-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 004/144] git-rebase--merge.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:09Z","receivedAt":"2014-03-25T08:24:09Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n git-rebase--merge.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/git-rebase--merge.sh b/git-rebase--merge.sh\nindex 5381857..dc064f8 100644\n--- a/git-rebase--merge.sh\n+++ b/git-rebase--merge.sh\n@@ -24,7 +24,7 @@ continue_merge () {\n \t\tdie \"$resolvemsg\"\n \tfi\n \n-\tcmt=`cat \"$state_dir/current\"`\n+\tcmt=$(cat \"$state_dir/current\")\n \tif ! git diff-index --quiet --ignore-submodules HEAD --\n \tthen\n \t\tif ! git commit ${gpg_sign_opt:+\"$gpg_sign_opt\"} --no-verify -C \"$cmt\"\n@@ -132,7 +132,7 @@ echo \"$onto_name\" > \"$state_dir/onto_name\"\n write_basic_state\n \n msgnum=0\n-for cmt in `git rev-list --reverse --no-merges \"$revisions\"`\n+for cmt in $(git rev-list --reverse --no-merges \"$revisions\")\n do\n \tmsgnum=$(($msgnum + 1))\n \techo \"$cmt\" > \"$state_dir/cmt.$msgnum\"\n-- \n1.7.10.4\n"},{"id":"237635","messageId":"1395735989-3396-6-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 005/144] git-rebase.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:10Z","receivedAt":"2014-03-25T08:24:10Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n git-rebase.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/git-rebase.sh b/git-rebase.sh\nindex 5f6732b..a209ab9 100755\n--- a/git-rebase.sh\n+++ b/git-rebase.sh\n@@ -462,8 +462,8 @@ then\n else\n \tif test -z \"$onto\"\n \tthen\n-\t\tempty_tree=`git hash-object -t tree /dev/null`\n-\t\tonto=`git commit-tree $empty_tree </dev/null`\n+\t\tempty_tree=$(git hash-object -t tree /dev/null)\n+\t\tonto=$(git commit-tree $empty_tree </dev/null)\n \t\tsquash_onto=\"$onto\"\n \tfi\n \tunset upstream_name\n@@ -521,10 +521,10 @@ case \"$#\" in\n \t;;\n 0)\n \t# Do not need to switch branches, we are already on it.\n-\tif branch_name=`git symbolic-ref -q HEAD`\n+\tif branch_name=$(git symbolic-ref -q HEAD)\n \tthen\n \t\thead_name=$branch_name\n-\t\tbranch_name=`expr \"z$branch_name\" : 'zrefs/heads/\\(.*\\)'`\n+\t\tbranch_name=$(expr \"z$branch_name\" : 'zrefs/heads/\\(.*\\)')\n \telse\n \t\thead_name=\"detached HEAD\"\n \t\tbranch_name=HEAD ;# detached\n-- \n1.7.10.4\n"},{"id":"237632","messageId":"1395735989-3396-7-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 006/144] git-stash.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:11Z","receivedAt":"2014-03-25T08:24:11Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n git-stash.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/git-stash.sh b/git-stash.sh\nindex 4798bcf..af549c7 100755\n--- a/git-stash.sh\n+++ b/git-stash.sh\n@@ -13,7 +13,7 @@ USAGE=\"list [<options>]\n \n SUBDIRECTORY_OK=Yes\n OPTIONS_SPEC=\n-START_DIR=`pwd`\n+START_DIR=$(pwd)\n . git-sh-setup\n . git-sh-i18n\n require_work_tree\n-- \n1.7.10.4\n"},{"id":"237533","messageId":"1395735989-3396-8-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 007/144] git-web--browse.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:12Z","receivedAt":"2014-03-25T08:24:12Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n git-web--browse.sh |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/git-web--browse.sh b/git-web--browse.sh\nindex ebdfba6..ae15253 100755\n--- a/git-web--browse.sh\n+++ b/git-web--browse.sh\n@@ -59,7 +59,7 @@ do\n \t-b|--browser*|-t|--tool*)\n \t\tcase \"$#,$1\" in\n \t\t*,*=*)\n-\t\t\tbrowser=`expr \"z$1\" : 'z-[^=]*=\\(.*\\)'`\n+\t\t\tbrowser=$(expr \"z$1\" : 'z-[^=]*=\\(.*\\)')\n \t\t\t;;\n \t\t1,*)\n \t\t\tusage ;;\n@@ -71,7 +71,7 @@ do\n \t-c|--config*)\n \t\tcase \"$#,$1\" in\n \t\t*,*=*)\n-\t\t\tconf=`expr \"z$1\" : 'z-[^=]*=\\(.*\\)'`\n+\t\t\tconf=$(expr \"z$1\" : 'z-[^=]*=\\(.*\\)')\n \t\t\t;;\n \t\t1,*)\n \t\t\tusage ;;\n@@ -100,7 +100,7 @@ then\n \tfor opt in \"$conf\" \"web.browser\"\n \tdo\n \t\ttest -z \"$opt\" && continue\n-\t\tbrowser=\"`git config $opt`\"\n+\t\tbrowser=\"$(git config $opt)\"\n \t\ttest -z \"$browser\" || break\n \tdone\n \tif test -n \"$browser\" && ! valid_tool \"$browser\"; then\n-- \n1.7.10.4\n"},{"id":"237532","messageId":"1395735989-3396-9-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 008/144] unimplemented.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:13Z","receivedAt":"2014-03-25T08:24:13Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n unimplemented.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/unimplemented.sh b/unimplemented.sh\nindex 5252de4..fee21d2 100644\n--- a/unimplemented.sh\n+++ b/unimplemented.sh\n@@ -1,4 +1,4 @@\n #!/bin/sh\n \n-echo >&2 \"fatal: git was built without support for `basename $0` (@@REASON@@).\"\n+echo >&2 \"fatal: git was built without support for $(basename $0) (@@REASON@@).\"\n exit 128\n-- \n1.7.10.4\n"},{"id":"237535","messageId":"1395735989-3396-10-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 009/144] t0001-init.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:14Z","receivedAt":"2014-03-25T08:24:14Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0001-init.sh |   12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)\n\ndiff --git a/t/t0001-init.sh b/t/t0001-init.sh\nindex 9fb582b..32821fe 100755\n--- a/t/t0001-init.sh\n+++ b/t/t0001-init.sh\n@@ -250,7 +250,7 @@ test_expect_success 'init --bare/--shared overrides system/global config' '\n \t) &&\n \tcheck_config init-bare-shared-override true unset &&\n \ttest x0666 = \\\n-\tx`git config -f init-bare-shared-override/config core.sharedRepository`\n+\tx$(git config -f init-bare-shared-override/config core.sharedRepository)\n '\n \n test_expect_success 'init honors global core.sharedRepository' '\n@@ -262,7 +262,7 @@ test_expect_success 'init honors global core.sharedRepository' '\n \t\tgit init\n \t) &&\n \ttest x0666 = \\\n-\tx`git config -f shared-honor-global/.git/config core.sharedRepository`\n+\tx$(git config -f shared-honor-global/.git/config core.sharedRepository)\n '\n \n test_expect_success 'init rejects insanely long --template' '\n@@ -374,7 +374,7 @@ test_expect_success 'init prefers command line to GIT_DIR' '\n test_expect_success 'init with separate gitdir' '\n \trm -rf newdir &&\n \tgit init --separate-git-dir realgitdir newdir &&\n-\techo \"gitdir: `pwd`/realgitdir\" >expected &&\n+\techo \"gitdir: $(pwd)/realgitdir\" >expected &&\n \ttest_cmp expected newdir/.git &&\n \ttest -d realgitdir/refs\n '\n@@ -388,7 +388,7 @@ test_expect_success 're-init to update git link' '\n \tcd newdir &&\n \tgit init --separate-git-dir ../surrealgitdir\n \t) &&\n-\techo \"gitdir: `pwd`/surrealgitdir\" >expected &&\n+\techo \"gitdir: $(pwd)/surrealgitdir\" >expected &&\n \ttest_cmp expected newdir/.git &&\n \ttest -d surrealgitdir/refs &&\n \t! test -d realgitdir/refs\n@@ -401,7 +401,7 @@ test_expect_success 're-init to move gitdir' '\n \tcd newdir &&\n \tgit init --separate-git-dir ../realgitdir\n \t) &&\n-\techo \"gitdir: `pwd`/realgitdir\" >expected &&\n+\techo \"gitdir: $(pwd)/realgitdir\" >expected &&\n \ttest_cmp expected newdir/.git &&\n \ttest -d realgitdir/refs\n '\n@@ -415,7 +415,7 @@ test_expect_success SYMLINKS 're-init to move gitdir symlink' '\n \tln -s here .git &&\n \tgit init --separate-git-dir ../realgitdir\n \t) &&\n-\techo \"gitdir: `pwd`/realgitdir\" >expected &&\n+\techo \"gitdir: $(pwd)/realgitdir\" >expected &&\n \ttest_cmp expected newdir/.git &&\n \ttest -d realgitdir/refs &&\n \t! test -d newdir/here\n-- \n1.7.10.4\n"},{"id":"237631","messageId":"1395735989-3396-11-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 010/144] t0010-racy-git.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:15Z","receivedAt":"2014-03-25T08:24:15Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0010-racy-git.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t0010-racy-git.sh b/t/t0010-racy-git.sh\nindex e45a9e4..5657c5a 100755\n--- a/t/t0010-racy-git.sh\n+++ b/t/t0010-racy-git.sh\n@@ -14,7 +14,7 @@ do\n \tgit update-index --add infocom\n \techo xyzzy >infocom\n \n-\tfiles=`git diff-files -p`\n+\tfiles=$(git diff-files -p)\n \ttest_expect_success \\\n \t\"Racy GIT trial #$trial part A\" \\\n \t'test \"\" != \"$files\"'\n@@ -23,7 +23,7 @@ do\n \techo xyzzy >cornerstone\n \tgit update-index --add cornerstone\n \n-\tfiles=`git diff-files -p`\n+\tfiles=$(git diff-files -p)\n \ttest_expect_success \\\n \t\"Racy GIT trial #$trial part B\" \\\n \t'test \"\" != \"$files\"'\n-- \n1.7.10.4\n"},{"id":"237628","messageId":"1395735989-3396-12-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 011/144] t0020-crlf.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:16Z","receivedAt":"2014-03-25T08:24:16Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0020-crlf.sh |   42 +++++++++++++++++++++---------------------\n 1 file changed, 21 insertions(+), 21 deletions(-)\n\ndiff --git a/t/t0020-crlf.sh b/t/t0020-crlf.sh\nindex e526184..d2e51a8 100755\n--- a/t/t0020-crlf.sh\n+++ b/t/t0020-crlf.sh\n@@ -20,14 +20,14 @@ test_expect_success setup '\n \n \tgit commit -m initial &&\n \n-\tone=`git rev-parse HEAD:one` &&\n-\tdir=`git rev-parse HEAD:dir` &&\n-\ttwo=`git rev-parse HEAD:dir/two` &&\n-\tthree=`git rev-parse HEAD:three` &&\n+\tone=$(git rev-parse HEAD:one) &&\n+\tdir=$(git rev-parse HEAD:dir) &&\n+\ttwo=$(git rev-parse HEAD:dir/two) &&\n+\tthree=$(git rev-parse HEAD:three) &&\n \n \tfor w in Some extra lines here; do echo $w; done >>one &&\n \tgit diff >patch.file &&\n-\tpatched=`git hash-object --stdin <one` &&\n+\tpatched=$(git hash-object --stdin <one) &&\n \tgit read-tree --reset -u HEAD &&\n \n \techo happy.\n@@ -111,7 +111,7 @@ test_expect_success 'update with autocrlf=input' '\n \t\t}\n \tdone &&\n \n-\tdiffers=`git diff-index --cached HEAD` &&\n+\tdiffers=$(git diff-index --cached HEAD) &&\n \ttest -z \"$differs\" || {\n \t\techo Oops \"$differs\"\n \t\tfalse\n@@ -135,7 +135,7 @@ test_expect_success 'update with autocrlf=true' '\n \t\t}\n \tdone &&\n \n-\tdiffers=`git diff-index --cached HEAD` &&\n+\tdiffers=$(git diff-index --cached HEAD) &&\n \ttest -z \"$differs\" || {\n \t\techo Oops \"$differs\"\n \t\tfalse\n@@ -158,9 +158,9 @@ test_expect_success 'checkout with autocrlf=true' '\n \t\t\tbreak\n \t\t}\n \tdone &&\n-\ttest \"$one\" = `git hash-object --stdin <one` &&\n-\ttest \"$two\" = `git hash-object --stdin <dir/two` &&\n-\tdiffers=`git diff-index --cached HEAD` &&\n+\ttest \"$one\" = $(git hash-object --stdin <one) &&\n+\ttest \"$two\" = $(git hash-object --stdin <dir/two) &&\n+\tdiffers=$(git diff-index --cached HEAD) &&\n \ttest -z \"$differs\" || {\n \t\techo Oops \"$differs\"\n \t\tfalse\n@@ -184,9 +184,9 @@ test_expect_success 'checkout with autocrlf=input' '\n \t\t\tgit update-index -- $f\n \t\tfi\n \tdone &&\n-\ttest \"$one\" = `git hash-object --stdin <one` &&\n-\ttest \"$two\" = `git hash-object --stdin <dir/two` &&\n-\tdiffers=`git diff-index --cached HEAD` &&\n+\ttest \"$one\" = $(git hash-object --stdin <one) &&\n+\ttest \"$two\" = $(git hash-object --stdin <dir/two) &&\n+\tdiffers=$(git diff-index --cached HEAD) &&\n \ttest -z \"$differs\" || {\n \t\techo Oops \"$differs\"\n \t\tfalse\n@@ -200,7 +200,7 @@ test_expect_success 'apply patch (autocrlf=input)' '\n \tgit read-tree --reset -u HEAD &&\n \n \tgit apply patch.file &&\n-\ttest \"$patched\" = \"`git hash-object --stdin <one`\" || {\n+\ttest \"$patched\" = \"$(git hash-object --stdin <one)\" || {\n \t\techo \"Eh?  apply without index\"\n \t\tfalse\n \t}\n@@ -213,7 +213,7 @@ test_expect_success 'apply patch --cached (autocrlf=input)' '\n \tgit read-tree --reset -u HEAD &&\n \n \tgit apply --cached patch.file &&\n-\ttest \"$patched\" = `git rev-parse :one` || {\n+\ttest \"$patched\" = $(git rev-parse :one) || {\n \t\techo \"Eh?  apply with --cached\"\n \t\tfalse\n \t}\n@@ -226,8 +226,8 @@ test_expect_success 'apply patch --index (autocrlf=input)' '\n \tgit read-tree --reset -u HEAD &&\n \n \tgit apply --index patch.file &&\n-\ttest \"$patched\" = `git rev-parse :one` &&\n-\ttest \"$patched\" = `git hash-object --stdin <one` || {\n+\ttest \"$patched\" = $(git rev-parse :one) &&\n+\ttest \"$patched\" = $(git hash-object --stdin <one) || {\n \t\techo \"Eh?  apply with --index\"\n \t\tfalse\n \t}\n@@ -240,7 +240,7 @@ test_expect_success 'apply patch (autocrlf=true)' '\n \tgit read-tree --reset -u HEAD &&\n \n \tgit apply patch.file &&\n-\ttest \"$patched\" = \"`remove_cr <one | git hash-object --stdin`\" || {\n+\ttest \"$patched\" = \"$(remove_cr <one | git hash-object --stdin)\" || {\n \t\techo \"Eh?  apply without index\"\n \t\tfalse\n \t}\n@@ -253,7 +253,7 @@ test_expect_success 'apply patch --cached (autocrlf=true)' '\n \tgit read-tree --reset -u HEAD &&\n \n \tgit apply --cached patch.file &&\n-\ttest \"$patched\" = `git rev-parse :one` || {\n+\ttest \"$patched\" = $(git rev-parse :one) || {\n \t\techo \"Eh?  apply without index\"\n \t\tfalse\n \t}\n@@ -266,8 +266,8 @@ test_expect_success 'apply patch --index (autocrlf=true)' '\n \tgit read-tree --reset -u HEAD &&\n \n \tgit apply --index patch.file &&\n-\ttest \"$patched\" = `git rev-parse :one` &&\n-\ttest \"$patched\" = \"`remove_cr <one | git hash-object --stdin`\" || {\n+\ttest \"$patched\" = $(git rev-parse :one) &&\n+\ttest \"$patched\" = \"$(remove_cr <one | git hash-object --stdin)\" || {\n \t\techo \"Eh?  apply with --index\"\n \t\tfalse\n \t}\n-- \n1.7.10.4\n"},{"id":"237534","messageId":"1395735989-3396-13-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 012/144] t0025-crlf-auto.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:17Z","receivedAt":"2014-03-25T08:24:17Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0025-crlf-auto.sh |   38 +++++++++++++++++++-------------------\n 1 file changed, 19 insertions(+), 19 deletions(-)\n\ndiff --git a/t/t0025-crlf-auto.sh b/t/t0025-crlf-auto.sh\nindex f5f67a6..b0e5694 100755\n--- a/t/t0025-crlf-auto.sh\n+++ b/t/t0025-crlf-auto.sh\n@@ -19,9 +19,9 @@ test_expect_success setup '\n \n \tgit commit -m initial &&\n \n-\tone=`git rev-parse HEAD:one` &&\n-\ttwo=`git rev-parse HEAD:two` &&\n-\tthree=`git rev-parse HEAD:three` &&\n+\tone=$(git rev-parse HEAD:one) &&\n+\ttwo=$(git rev-parse HEAD:two) &&\n+\tthree=$(git rev-parse HEAD:three) &&\n \n \techo happy.\n '\n@@ -33,9 +33,9 @@ test_expect_success 'default settings cause no changes' '\n \n \t! has_cr one &&\n \thas_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n-\tthreediff=`git diff three` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n+\tthreediff=$(git diff three) &&\n \ttest -z \"$onediff\" -a -z \"$twodiff\" -a -z \"$threediff\"\n '\n \n@@ -48,7 +48,7 @@ test_expect_success 'crlf=true causes a CRLF file to be normalized' '\n \n \t# Note, \"normalized\" means that git will normalize it if added\n \thas_cr two &&\n-\ttwodiff=`git diff two` &&\n+\ttwodiff=$(git diff two) &&\n \ttest -n \"$twodiff\"\n '\n \n@@ -60,7 +60,7 @@ test_expect_success 'text=true causes a CRLF file to be normalized' '\n \n \t# Note, \"normalized\" means that git will normalize it if added\n \thas_cr two &&\n-\ttwodiff=`git diff two` &&\n+\ttwodiff=$(git diff two) &&\n \ttest -n \"$twodiff\"\n '\n \n@@ -72,7 +72,7 @@ test_expect_success 'eol=crlf gives a normalized file CRLFs with autocrlf=false'\n \tgit read-tree --reset -u HEAD &&\n \n \thas_cr one &&\n-\tonediff=`git diff one` &&\n+\tonediff=$(git diff one) &&\n \ttest -z \"$onediff\"\n '\n \n@@ -84,7 +84,7 @@ test_expect_success 'eol=crlf gives a normalized file CRLFs with autocrlf=input'\n \tgit read-tree --reset -u HEAD &&\n \n \thas_cr one &&\n-\tonediff=`git diff one` &&\n+\tonediff=$(git diff one) &&\n \ttest -z \"$onediff\"\n '\n \n@@ -96,7 +96,7 @@ test_expect_success 'eol=lf gives a normalized file LFs with autocrlf=true' '\n \tgit read-tree --reset -u HEAD &&\n \n \t! has_cr one &&\n-\tonediff=`git diff one` &&\n+\tonediff=$(git diff one) &&\n \ttest -z \"$onediff\"\n '\n \n@@ -108,9 +108,9 @@ test_expect_success 'autocrlf=true does not normalize CRLF files' '\n \n \thas_cr one &&\n \thas_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n-\tthreediff=`git diff three` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n+\tthreediff=$(git diff three) &&\n \ttest -z \"$onediff\" -a -z \"$twodiff\" -a -z \"$threediff\"\n '\n \n@@ -123,9 +123,9 @@ test_expect_success 'text=auto, autocrlf=true _does_ normalize CRLF files' '\n \n \thas_cr one &&\n \thas_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n-\tthreediff=`git diff three` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n+\tthreediff=$(git diff three) &&\n \ttest -z \"$onediff\" -a -n \"$twodiff\" -a -z \"$threediff\"\n '\n \n@@ -137,7 +137,7 @@ test_expect_success 'text=auto, autocrlf=true does not normalize binary files' '\n \tgit read-tree --reset -u HEAD &&\n \n \t! has_cr three &&\n-\tthreediff=`git diff three` &&\n+\tthreediff=$(git diff three) &&\n \ttest -z \"$threediff\"\n '\n \n@@ -148,7 +148,7 @@ test_expect_success 'eol=crlf _does_ normalize binary files' '\n \tgit read-tree --reset -u HEAD &&\n \n \thas_cr three &&\n-\tthreediff=`git diff three` &&\n+\tthreediff=$(git diff three) &&\n \ttest -z \"$threediff\"\n '\n \n-- \n1.7.10.4\n"},{"id":"237536","messageId":"1395735989-3396-14-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 013/144] t0026-eol-config.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:18Z","receivedAt":"2014-03-25T08:24:18Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0026-eol-config.sh |   20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)\n\ndiff --git a/t/t0026-eol-config.sh b/t/t0026-eol-config.sh\nindex fe0164b..e1126aa 100755\n--- a/t/t0026-eol-config.sh\n+++ b/t/t0026-eol-config.sh\n@@ -20,8 +20,8 @@ test_expect_success setup '\n \n \tgit commit -m initial &&\n \n-\tone=`git rev-parse HEAD:one` &&\n-\ttwo=`git rev-parse HEAD:two` &&\n+\tone=$(git rev-parse HEAD:one) &&\n+\ttwo=$(git rev-parse HEAD:two) &&\n \n \techo happy.\n '\n@@ -34,8 +34,8 @@ test_expect_success 'eol=lf puts LFs in normalized file' '\n \n \t! has_cr one &&\n \t! has_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n \ttest -z \"$onediff\" -a -z \"$twodiff\"\n '\n \n@@ -47,8 +47,8 @@ test_expect_success 'eol=crlf puts CRLFs in normalized file' '\n \n \thas_cr one &&\n \t! has_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n \ttest -z \"$onediff\" -a -z \"$twodiff\"\n '\n \n@@ -61,8 +61,8 @@ test_expect_success 'autocrlf=true overrides eol=lf' '\n \n \thas_cr one &&\n \thas_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n \ttest -z \"$onediff\" -a -z \"$twodiff\"\n '\n \n@@ -75,8 +75,8 @@ test_expect_success 'autocrlf=true overrides unset eol' '\n \n \thas_cr one &&\n \thas_cr two &&\n-\tonediff=`git diff one` &&\n-\ttwodiff=`git diff two` &&\n+\tonediff=$(git diff one) &&\n+\ttwodiff=$(git diff two) &&\n \ttest -z \"$onediff\" -a -z \"$twodiff\"\n '\n \n-- \n1.7.10.4\n"},{"id":"237630","messageId":"1395735989-3396-15-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 014/144] t0030-stripspace.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:19Z","receivedAt":"2014-03-25T08:24:19Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0030-stripspace.sh |   20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)\n\ndiff --git a/t/t0030-stripspace.sh b/t/t0030-stripspace.sh\nindex a8e84d8..0333dd9 100755\n--- a/t/t0030-stripspace.sh\n+++ b/t/t0030-stripspace.sh\n@@ -225,22 +225,22 @@ test_expect_success \\\n \n test_expect_success \\\n     'text without newline at end should end with newline' '\n-    test `printf \"$ttt\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$ttt\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$ttt$ttt\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$ttt$ttt$ttt\" | git stripspace | wc -l` -gt 0\n+    test $(printf \"$ttt\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$ttt\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$ttt$ttt\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$ttt$ttt$ttt\" | git stripspace | wc -l) -gt 0\n '\n \n # text plus spaces at the end:\n \n test_expect_success \\\n     'text plus spaces without newline at end should end with newline' '\n-    test `printf \"$ttt$sss\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$ttt$sss\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$ttt$ttt$sss\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$sss$sss\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$ttt$sss$sss\" | git stripspace | wc -l` -gt 0 &&\n-    test `printf \"$ttt$sss$sss$sss\" | git stripspace | wc -l` -gt 0\n+    test $(printf \"$ttt$sss\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$ttt$sss\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$ttt$ttt$sss\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$sss$sss\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$ttt$sss$sss\" | git stripspace | wc -l) -gt 0 &&\n+    test $(printf \"$ttt$sss$sss$sss\" | git stripspace | wc -l) -gt 0\n '\n \n test_expect_success \\\n-- \n1.7.10.4\n"},{"id":"237537","messageId":"1395735989-3396-16-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 015/144] t0204-gettext-reencode-sanity.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:20Z","receivedAt":"2014-03-25T08:24:20Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0204-gettext-reencode-sanity.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t0204-gettext-reencode-sanity.sh b/t/t0204-gettext-reencode-sanity.sh\nindex 8437e51..fc9f21e 100755\n--- a/t/t0204-gettext-reencode-sanity.sh\n+++ b/t/t0204-gettext-reencode-sanity.sh\n@@ -58,7 +58,7 @@ test_expect_success GETTEXT_LOCALE 'gettext: Fetching a UTF-8 msgid -> UTF-8' '\n # How these quotes get transliterated depends on the gettext implementation:\n #\n #   Debian:  ,einfaldar' og ,,tvöfaldar\" [GNU libintl]\n-#   FreeBSD: `einfaldar` og \"tvöfaldar\"  [GNU libintl]\n+#   FreeBSD: $(einfaldar) og \"tvöfaldar\"  [GNU libintl]\n #   Solaris: ?einfaldar? og ?tvöfaldar?  [Solaris libintl]\n #\n # Just make sure the contents are transliterated, and don't use grep -q\n-- \n1.7.10.4\n"},{"id":"237619","messageId":"1395735989-3396-17-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 016/144] t0300-credentials.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:21Z","receivedAt":"2014-03-25T08:24:21Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t0300-credentials.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t0300-credentials.sh b/t/t0300-credentials.sh\nindex 538ea5f..57ea5a1 100755\n--- a/t/t0300-credentials.sh\n+++ b/t/t0300-credentials.sh\n@@ -6,7 +6,7 @@ test_description='basic credential helper tests'\n \n test_expect_success 'setup helper scripts' '\n \tcat >dump <<-\\EOF &&\n-\twhoami=`echo $0 | sed s/.*git-credential-//`\n+\twhoami=$(echo $0 | sed s/.*git-credential-//)\n \techo >&2 \"$whoami: $*\"\n \tOIFS=$IFS\n \tIFS==\n-- \n1.7.10.4\n"},{"id":"237622","messageId":"1395735989-3396-18-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 017/144] t1000-read-tree-m-3way.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:22Z","receivedAt":"2014-03-25T08:24:22Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1000-read-tree-m-3way.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t1000-read-tree-m-3way.sh b/t/t1000-read-tree-m-3way.sh\nindex babcdd2..a0b79b4 100755\n--- a/t/t1000-read-tree-m-3way.sh\n+++ b/t/t1000-read-tree-m-3way.sh\n@@ -519,10 +519,10 @@ test_expect_success \\\n     'rm -f .git/index F16 &&\n     echo F16 >F16 &&\n     git update-index --add F16 &&\n-    tree0=`git write-tree` &&\n+    tree0=$(git write-tree) &&\n     echo E16 >F16 &&\n     git update-index F16 &&\n-    tree1=`git write-tree` &&\n+    tree1=$(git write-tree) &&\n     read_tree_must_succeed -m $tree0 $tree1 $tree1 $tree0 &&\n     git ls-files --stage'\n \n-- \n1.7.10.4\n"},{"id":"237538","messageId":"1395735989-3396-19-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 018/144] t1001-read-tree-m-2way.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:23Z","receivedAt":"2014-03-25T08:24:23Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1001-read-tree-m-2way.sh |   18 +++++++++---------\n 1 file changed, 9 insertions(+), 9 deletions(-)\n\ndiff --git a/t/t1001-read-tree-m-2way.sh b/t/t1001-read-tree-m-2way.sh\nindex acaab07..f0d8eb9 100755\n--- a/t/t1001-read-tree-m-2way.sh\n+++ b/t/t1001-read-tree-m-2way.sh\n@@ -36,7 +36,7 @@ compare_change () {\n }\n \n check_cache_at () {\n-\tclean_if_empty=`git diff-files -- \"$1\"`\n+\tclean_if_empty=$(git diff-files -- \"$1\")\n \tcase \"$clean_if_empty\" in\n \t'')  echo \"$1: clean\" ;;\n \t?*)  echo \"$1: dirty\" ;;\n@@ -68,14 +68,14 @@ test_expect_success \\\n      echo rezrov >rezrov &&\n      echo yomin >yomin &&\n      git update-index --add nitfol bozbar rezrov &&\n-     treeH=`git write-tree` &&\n+     treeH=$(git write-tree) &&\n      echo treeH $treeH &&\n      git ls-tree $treeH &&\n \n      cat bozbar-new >bozbar &&\n      git update-index --add frotz bozbar --force-remove rezrov &&\n      git ls-files --stage >M.out &&\n-     treeM=`git write-tree` &&\n+     treeM=$(git write-tree) &&\n      echo treeM $treeM &&\n      git ls-tree $treeM &&\n      git diff-tree $treeH $treeM'\n@@ -315,7 +315,7 @@ test_expect_success \\\n     'rm -f .git/index &&\n      echo DF >DF &&\n      git update-index --add DF &&\n-     treeDF=`git write-tree` &&\n+     treeDF=$(git write-tree) &&\n      echo treeDF $treeDF &&\n      git ls-tree $treeDF &&\n \n@@ -323,7 +323,7 @@ test_expect_success \\\n      mkdir DF &&\n      echo DF/DF >DF/DF &&\n      git update-index --add --remove DF DF/DF &&\n-     treeDFDF=`git write-tree` &&\n+     treeDFDF=$(git write-tree) &&\n      echo treeDFDF $treeDFDF &&\n      git ls-tree $treeDFDF &&\n      git ls-files --stage >DFDF.out'\n@@ -345,7 +345,7 @@ test_expect_success \\\n     'rm -f .git/index &&\n      : >a &&\n      git update-index --add a &&\n-     treeM=`git write-tree` &&\n+     treeM=$(git write-tree) &&\n      echo treeM $treeM &&\n      git ls-tree $treeM &&\n      git ls-files --stage >treeM.out &&\n@@ -354,7 +354,7 @@ test_expect_success \\\n      git update-index --remove a &&\n      mkdir a &&\n      : >a/b &&\n-     treeH=`git write-tree` &&\n+     treeH=$(git write-tree) &&\n      echo treeH $treeH &&\n      git ls-tree $treeH'\n \n@@ -372,7 +372,7 @@ test_expect_success \\\n      mkdir c &&\n      : >c/d &&\n      git update-index --add a c/d &&\n-     treeM=`git write-tree` &&\n+     treeM=$(git write-tree) &&\n      echo treeM $treeM &&\n      git ls-tree $treeM &&\n      git ls-files --stage >treeM.out &&\n@@ -381,7 +381,7 @@ test_expect_success \\\n      mkdir a &&\n      : >a/b &&\n      git update-index --add --remove a a/b &&\n-     treeH=`git write-tree` &&\n+     treeH=$(git write-tree) &&\n      echo treeH $treeH &&\n      git ls-tree $treeH'\n \n-- \n1.7.10.4\n"},{"id":"237626","messageId":"1395735989-3396-20-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 019/144] t1002-read-tree-m-u-2way.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:24Z","receivedAt":"2014-03-25T08:24:24Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1002-read-tree-m-u-2way.sh |   10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/t/t1002-read-tree-m-u-2way.sh b/t/t1002-read-tree-m-u-2way.sh\nindex a847709..fed877b 100755\n--- a/t/t1002-read-tree-m-u-2way.sh\n+++ b/t/t1002-read-tree-m-u-2way.sh\n@@ -21,7 +21,7 @@ compare_change () {\n }\n \n check_cache_at () {\n-\tclean_if_empty=`git diff-files -- \"$1\"`\n+\tclean_if_empty=$(git diff-files -- \"$1\")\n \tcase \"$clean_if_empty\" in\n \t'')  echo \"$1: clean\" ;;\n \t?*)  echo \"$1: dirty\" ;;\n@@ -41,14 +41,14 @@ test_expect_success \\\n      echo bozbar >bozbar &&\n      echo rezrov >rezrov &&\n      git update-index --add nitfol bozbar rezrov &&\n-     treeH=`git write-tree` &&\n+     treeH=$(git write-tree) &&\n      echo treeH $treeH &&\n      git ls-tree $treeH &&\n \n      echo gnusto >bozbar &&\n      git update-index --add frotz bozbar --force-remove rezrov &&\n      git ls-files --stage >M.out &&\n-     treeM=`git write-tree` &&\n+     treeM=$(git write-tree) &&\n      echo treeM $treeM &&\n      git ls-tree $treeM &&\n      sum bozbar frotz nitfol >M.sum &&\n@@ -318,7 +318,7 @@ test_expect_success \\\n     'rm -f .git/index &&\n      echo DF >DF &&\n      git update-index --add DF &&\n-     treeDF=`git write-tree` &&\n+     treeDF=$(git write-tree) &&\n      echo treeDF $treeDF &&\n      git ls-tree $treeDF &&\n \n@@ -326,7 +326,7 @@ test_expect_success \\\n      mkdir DF &&\n      echo DF/DF >DF/DF &&\n      git update-index --add --remove DF DF/DF &&\n-     treeDFDF=`git write-tree` &&\n+     treeDFDF=$(git write-tree) &&\n      echo treeDFDF $treeDFDF &&\n      git ls-tree $treeDFDF &&\n      git ls-files --stage >DFDF.out'\n-- \n1.7.10.4\n"},{"id":"237624","messageId":"1395735989-3396-21-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 020/144] t1003-read-tree-prefix.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:25Z","receivedAt":"2014-03-25T08:24:25Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1003-read-tree-prefix.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t1003-read-tree-prefix.sh b/t/t1003-read-tree-prefix.sh\nindex 8c6d67e..b6111cd 100755\n--- a/t/t1003-read-tree-prefix.sh\n+++ b/t/t1003-read-tree-prefix.sh\n@@ -11,7 +11,7 @@ test_description='git read-tree --prefix test.\n test_expect_success setup '\n \techo hello >one &&\n \tgit update-index --add one &&\n-\ttree=`git write-tree` &&\n+\ttree=$(git write-tree) &&\n \techo tree is $tree\n '\n \n-- \n1.7.10.4\n"},{"id":"237616","messageId":"1395735989-3396-22-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 021/144] t1004-read-tree-m-u-wf.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:26Z","receivedAt":"2014-03-25T08:24:26Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1004-read-tree-m-u-wf.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t1004-read-tree-m-u-wf.sh b/t/t1004-read-tree-m-u-wf.sh\nindex 3e72aff..c70cf42 100755\n--- a/t/t1004-read-tree-m-u-wf.sh\n+++ b/t/t1004-read-tree-m-u-wf.sh\n@@ -30,7 +30,7 @@ test_expect_success 'two-way not clobbering' '\n \n \techo >file2 master creates untracked file2 &&\n \techo >subdir/file2 master creates untracked subdir/file2 &&\n-\tif err=`read_tree_u_must_succeed -m -u master side 2>&1`\n+\tif err=$(read_tree_u_must_succeed -m -u master side 2>&1)\n \tthen\n \t\techo should have complained\n \t\tfalse\n@@ -43,7 +43,7 @@ echo file2 >.gitignore\n \n test_expect_success 'two-way with incorrect --exclude-per-directory (1)' '\n \n-\tif err=`read_tree_u_must_succeed -m --exclude-per-directory=.gitignore master side 2>&1`\n+\tif err=$(read_tree_u_must_succeed -m --exclude-per-directory=.gitignore master side 2>&1)\n \tthen\n \t\techo should have complained\n \t\tfalse\n@@ -54,7 +54,7 @@ test_expect_success 'two-way with incorrect --exclude-per-directory (1)' '\n \n test_expect_success 'two-way with incorrect --exclude-per-directory (2)' '\n \n-\tif err=`read_tree_u_must_succeed -m -u --exclude-per-directory=foo --exclude-per-directory=.gitignore master side 2>&1`\n+\tif err=$(read_tree_u_must_succeed -m -u --exclude-per-directory=foo --exclude-per-directory=.gitignore master side 2>&1)\n \tthen\n \t\techo should have complained\n \t\tfalse\n@@ -95,7 +95,7 @@ test_expect_success 'three-way not clobbering a working tree file' '\n \tgit checkout master &&\n \techo >file3 file three created in master, untracked &&\n \techo >subdir/file3 file three created in master, untracked &&\n-\tif err=`read_tree_u_must_succeed -m -u branch-point master side 2>&1`\n+\tif err=$(read_tree_u_must_succeed -m -u branch-point master side 2>&1)\n \tthen\n \t\techo should have complained\n \t\tfalse\n-- \n1.7.10.4\n"},{"id":"237629","messageId":"1395735989-3396-23-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 022/144] t1020-subdirectory.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:27Z","receivedAt":"2014-03-25T08:24:27Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1020-subdirectory.sh |   22 +++++++++++-----------\n 1 file changed, 11 insertions(+), 11 deletions(-)\n\ndiff --git a/t/t1020-subdirectory.sh b/t/t1020-subdirectory.sh\nindex 6902320..62c0d25 100755\n--- a/t/t1020-subdirectory.sh\n+++ b/t/t1020-subdirectory.sh\n@@ -20,27 +20,27 @@ test_expect_success setup '\n \n test_expect_success 'update-index and ls-files' '\n \tgit update-index --add one &&\n-\tcase \"`git ls-files`\" in\n+\tcase \"$(git ls-files)\" in\n \tone) echo pass one ;;\n \t*) echo bad one; exit 1 ;;\n \tesac &&\n \t(\n \t\tcd dir &&\n \t\tgit update-index --add two &&\n-\t\tcase \"`git ls-files`\" in\n+\t\tcase \"$(git ls-files)\" in\n \t\ttwo) echo pass two ;;\n \t\t*) echo bad two; exit 1 ;;\n \t\tesac\n \t) &&\n-\tcase \"`git ls-files`\" in\n+\tcase \"$(git ls-files)\" in\n \tdir/two\"$LF\"one) echo pass both ;;\n \t*) echo bad; exit 1 ;;\n \tesac\n '\n \n test_expect_success 'cat-file' '\n-\ttwo=`git ls-files -s dir/two` &&\n-\ttwo=`expr \"$two\" : \"[0-7]* \\\\([0-9a-f]*\\\\)\"` &&\n+\ttwo=$(git ls-files -s dir/two) &&\n+\ttwo=$(expr \"$two\" : \"[0-7]* \\\\([0-9a-f]*\\\\)\") &&\n \techo \"$two\" &&\n \tgit cat-file -p \"$two\" >actual &&\n \tcmp dir/two actual &&\n@@ -55,18 +55,18 @@ rm -f actual dir/actual\n test_expect_success 'diff-files' '\n \techo a >>one &&\n \techo d >>dir/two &&\n-\tcase \"`git diff-files --name-only`\" in\n+\tcase \"$(git diff-files --name-only)\" in\n \tdir/two\"$LF\"one) echo pass top ;;\n \t*) echo bad top; exit 1 ;;\n \tesac &&\n \t# diff should not omit leading paths\n \t(\n \t\tcd dir &&\n-\t\tcase \"`git diff-files --name-only`\" in\n+\t\tcase \"$(git diff-files --name-only)\" in\n \t\tdir/two\"$LF\"one) echo pass subdir ;;\n \t\t*) echo bad subdir; exit 1 ;;\n \t\tesac &&\n-\t\tcase \"`git diff-files --name-only .`\" in\n+\t\tcase \"$(git diff-files --name-only .)\" in\n \t\tdir/two) echo pass subdir limited ;;\n \t\t*) echo bad subdir limited; exit 1 ;;\n \t\tesac\n@@ -74,11 +74,11 @@ test_expect_success 'diff-files' '\n '\n \n test_expect_success 'write-tree' '\n-\ttop=`git write-tree` &&\n+\ttop=$(git write-tree) &&\n \techo $top &&\n \t(\n \t\tcd dir &&\n-\t\tsub=`git write-tree` &&\n+\t\tsub=$(git write-tree) &&\n \t\techo $sub &&\n \t\ttest \"z$top\" = \"z$sub\"\n \t)\n@@ -96,7 +96,7 @@ test_expect_success 'checkout-index' '\n \n test_expect_success 'read-tree' '\n \trm -f one dir/two &&\n-\ttree=`git write-tree` &&\n+\ttree=$(git write-tree) &&\n \tread_tree_u_must_succeed --reset -u \"$tree\" &&\n \tcmp one original.one &&\n \tcmp dir/two original.two &&\n-- \n1.7.10.4\n"},{"id":"237627","messageId":"1395735989-3396-24-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 023/144] t1050-large.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:28Z","receivedAt":"2014-03-25T08:24:28Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1050-large.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t1050-large.sh b/t/t1050-large.sh\nindex fd10528..aea4936 100755\n--- a/t/t1050-large.sh\n+++ b/t/t1050-large.sh\n@@ -131,7 +131,7 @@ test_expect_success 'git-show a large file' '\n '\n \n test_expect_success 'index-pack' '\n-\tgit clone file://\"`pwd`\"/.git foo &&\n+\tgit clone file://\"$(pwd)\"/.git foo &&\n \tGIT_DIR=non-existent git index-pack --strict --verify foo/.git/objects/pack/*.pack\n '\n \n@@ -140,7 +140,7 @@ test_expect_success 'repack' '\n '\n \n test_expect_success 'pack-objects with large loose object' '\n-\tSHA1=`git hash-object huge` &&\n+\tSHA1=$(git hash-object huge) &&\n \ttest_create_repo loose &&\n \techo $SHA1 | git pack-objects --stdout |\n \t\tGIT_ALLOC_LIMIT=0 GIT_DIR=loose/.git git unpack-objects &&\n-- \n1.7.10.4\n"},{"id":"237625","messageId":"1395735989-3396-25-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 024/144] t1100-commit-tree-options.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:29Z","receivedAt":"2014-03-25T08:24:29Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1100-commit-tree-options.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t1100-commit-tree-options.sh b/t/t1100-commit-tree-options.sh\nindex f8457f9..b7e9b4fc 100755\n--- a/t/t1100-commit-tree-options.sh\n+++ b/t/t1100-commit-tree-options.sh\n@@ -35,11 +35,11 @@ test_expect_success \\\n      GIT_COMMITTER_NAME=\"Committer Name\" \\\n      GIT_COMMITTER_EMAIL=\"committer@email\" \\\n      GIT_COMMITTER_DATE=\"2005-05-26 23:30\" \\\n-     TZ=GMT git commit-tree `cat treeid` >commitid 2>/dev/null'\n+     TZ=GMT git commit-tree $(cat treeid) >commitid 2>/dev/null'\n \n test_expect_success \\\n     'read commit' \\\n-    'git cat-file commit `cat commitid` >commit'\n+    'git cat-file commit $(cat commitid) >commit'\n \n test_expect_success \\\n     'compare commit' \\\n-- \n1.7.10.4\n"},{"id":"237623","messageId":"1395735989-3396-26-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 025/144] t1401-symbolic-ref.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:30Z","receivedAt":"2014-03-25T08:24:30Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1401-symbolic-ref.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t1401-symbolic-ref.sh b/t/t1401-symbolic-ref.sh\nindex 36378b0..6ea8985 100755\n--- a/t/t1401-symbolic-ref.sh\n+++ b/t/t1401-symbolic-ref.sh\n@@ -29,7 +29,7 @@ reset_to_sane\n \n test_expect_success 'symbolic-ref refuses bare sha1' '\n \techo content >file && git add file && git commit -m one &&\n-\ttest_must_fail git symbolic-ref HEAD `git rev-parse HEAD`\n+\ttest_must_fail git symbolic-ref HEAD $(git rev-parse HEAD)\n '\n reset_to_sane\n \n-- \n1.7.10.4\n"},{"id":"237621","messageId":"1395735989-3396-27-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 026/144] t1410-reflog.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:31Z","receivedAt":"2014-03-25T08:24:31Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1410-reflog.sh |   24 ++++++++++++------------\n 1 file changed, 12 insertions(+), 12 deletions(-)\n\ndiff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh\nindex 236b13a..0a9502a 100755\n--- a/t/t1410-reflog.sh\n+++ b/t/t1410-reflog.sh\n@@ -62,18 +62,18 @@ test_expect_success setup '\n \tgit add . &&\n \n \ttest_tick && git commit -m rabbit &&\n-\tH=`git rev-parse --verify HEAD` &&\n-\tA=`git rev-parse --verify HEAD:A` &&\n-\tB=`git rev-parse --verify HEAD:A/B` &&\n-\tC=`git rev-parse --verify HEAD:C` &&\n-\tD=`git rev-parse --verify HEAD:A/D` &&\n-\tE=`git rev-parse --verify HEAD:A/B/E` &&\n+\tH=$(git rev-parse --verify HEAD) &&\n+\tA=$(git rev-parse --verify HEAD:A) &&\n+\tB=$(git rev-parse --verify HEAD:A/B) &&\n+\tC=$(git rev-parse --verify HEAD:C) &&\n+\tD=$(git rev-parse --verify HEAD:A/D) &&\n+\tE=$(git rev-parse --verify HEAD:A/B/E) &&\n \tcheck_fsck &&\n \n \ttest_chmod +x C &&\n \tgit add C &&\n \ttest_tick && git commit -m dragon &&\n-\tL=`git rev-parse --verify HEAD` &&\n+\tL=$(git rev-parse --verify HEAD) &&\n \tcheck_fsck &&\n \n \trm -f C A/B/E &&\n@@ -81,15 +81,15 @@ test_expect_success setup '\n \techo horse >A/G &&\n \tgit add F A/G &&\n \ttest_tick && git commit -a -m sheep &&\n-\tF=`git rev-parse --verify HEAD:F` &&\n-\tG=`git rev-parse --verify HEAD:A/G` &&\n-\tI=`git rev-parse --verify HEAD:A` &&\n-\tJ=`git rev-parse --verify HEAD` &&\n+\tF=$(git rev-parse --verify HEAD:F) &&\n+\tG=$(git rev-parse --verify HEAD:A/G) &&\n+\tI=$(git rev-parse --verify HEAD:A) &&\n+\tJ=$(git rev-parse --verify HEAD) &&\n \tcheck_fsck &&\n \n \trm -f A/G &&\n \ttest_tick && git commit -a -m monkey &&\n-\tK=`git rev-parse --verify HEAD` &&\n+\tK=$(git rev-parse --verify HEAD) &&\n \tcheck_fsck &&\n \n \tcheck_have A B C D E F G H I J K L &&\n-- \n1.7.10.4\n"},{"id":"237620","messageId":"1395735989-3396-28-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 027/144] t1511-rev-parse-caret.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:32Z","receivedAt":"2014-03-25T08:24:32Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1511-rev-parse-caret.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t1511-rev-parse-caret.sh b/t/t1511-rev-parse-caret.sh\nindex 15973f2..7043ba7 100755\n--- a/t/t1511-rev-parse-caret.sh\n+++ b/t/t1511-rev-parse-caret.sh\n@@ -6,11 +6,11 @@ test_description='tests for ref^{stuff}'\n \n test_expect_success 'setup' '\n \techo blob >a-blob &&\n-\tgit tag -a -m blob blob-tag `git hash-object -w a-blob` &&\n+\tgit tag -a -m blob blob-tag $(git hash-object -w a-blob) &&\n \tmkdir a-tree &&\n \techo moreblobs >a-tree/another-blob &&\n \tgit add . &&\n-\tTREE_SHA1=`git write-tree` &&\n+\tTREE_SHA1=$(git write-tree) &&\n \tgit tag -a -m tree tree-tag \"$TREE_SHA1\" &&\n \tgit commit -m Initial &&\n \tgit tag -a -m commit commit-tag &&\n-- \n1.7.10.4\n"},{"id":"237618","messageId":"1395735989-3396-29-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 028/144] t1512-rev-parse-disambiguation.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:33Z","receivedAt":"2014-03-25T08:24:33Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t1512-rev-parse-disambiguation.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t1512-rev-parse-disambiguation.sh b/t/t1512-rev-parse-disambiguation.sh\nindex 4a155c8..e221167 100755\n--- a/t/t1512-rev-parse-disambiguation.sh\n+++ b/t/t1512-rev-parse-disambiguation.sh\n@@ -275,19 +275,19 @@ test_expect_success 'rev-parse --disambiguate' '\n \n test_expect_success 'ambiguous 40-hex ref' '\n \tTREE=$(git mktree </dev/null) &&\n-\tREF=`git rev-parse HEAD` &&\n+\tREF=$(git rev-parse HEAD) &&\n \tVAL=$(git commit-tree $TREE </dev/null) &&\n \tgit update-ref refs/heads/$REF $VAL &&\n-\ttest `git rev-parse $REF 2>err` = $REF &&\n+\ttest $(git rev-parse $REF 2>err) = $REF &&\n \tgrep \"refname.*${REF}.*ambiguous\" err\n '\n \n test_expect_success 'ambiguous short sha1 ref' '\n \tTREE=$(git mktree </dev/null) &&\n-\tREF=`git rev-parse --short HEAD` &&\n+\tREF=$(git rev-parse --short HEAD) &&\n \tVAL=$(git commit-tree $TREE </dev/null) &&\n \tgit update-ref refs/heads/$REF $VAL &&\n-\ttest `git rev-parse $REF 2>err` = $VAL &&\n+\ttest $(git rev-parse $REF 2>err) = $VAL &&\n \tgrep \"refname.*${REF}.*ambiguous\" err\n '\n \n-- \n1.7.10.4\n"},{"id":"237617","messageId":"1395735989-3396-30-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 029/144] t2102-update-index-symlinks.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:34Z","receivedAt":"2014-03-25T08:24:34Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t2102-update-index-symlinks.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t2102-update-index-symlinks.sh b/t/t2102-update-index-symlinks.sh\nindex 4d0d0a3..22f2c73 100755\n--- a/t/t2102-update-index-symlinks.sh\n+++ b/t/t2102-update-index-symlinks.sh\n@@ -23,7 +23,7 @@ git update-index symlink'\n \n test_expect_success \\\n 'the index entry must still be a symbolic link' '\n-case \"`git ls-files --stage --cached symlink`\" in\n+case \"$(git ls-files --stage --cached symlink)\" in\n 120000\" \"*symlink) echo pass;;\n *) echo fail; git ls-files --stage --cached symlink; (exit 1);;\n esac'\n-- \n1.7.10.4\n"},{"id":"237539","messageId":"1395735989-3396-31-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 030/144] t3030-merge-recursive.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:35Z","receivedAt":"2014-03-25T08:24:35Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3030-merge-recursive.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t3030-merge-recursive.sh b/t/t3030-merge-recursive.sh\nindex 82e1854..e9757c4 100755\n--- a/t/t3030-merge-recursive.sh\n+++ b/t/t3030-merge-recursive.sh\n@@ -263,7 +263,7 @@ test_expect_success 'setup 8' '\n \ttest_ln_s_add e a &&\n \ttest_tick &&\n \tgit commit -m \"rename a->e, symlink a->e\" &&\n-\toln=`printf e | git hash-object --stdin`\n+\toln=$(printf e | git hash-object --stdin)\n '\n \n test_expect_success 'setup 9' '\n-- \n1.7.10.4\n"},{"id":"237613","messageId":"1395735989-3396-32-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 031/144] t3100-ls-tree-restrict.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:36Z","receivedAt":"2014-03-25T08:24:36Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3100-ls-tree-restrict.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t3100-ls-tree-restrict.sh b/t/t3100-ls-tree-restrict.sh\nindex eb73c06..325114f 100755\n--- a/t/t3100-ls-tree-restrict.sh\n+++ b/t/t3100-ls-tree-restrict.sh\n@@ -28,7 +28,7 @@ test_expect_success \\\n      echo Mi >path2/baz/b &&\n      find path? \\( -type f -o -type l \\) -print |\n      xargs git update-index --add &&\n-     tree=`git write-tree` &&\n+     tree=$(git write-tree) &&\n      echo $tree'\n \n test_output () {\n-- \n1.7.10.4\n"},{"id":"237614","messageId":"1395735989-3396-33-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 032/144] t3101-ls-tree-dirname.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:37Z","receivedAt":"2014-03-25T08:24:37Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3101-ls-tree-dirname.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t3101-ls-tree-dirname.sh b/t/t3101-ls-tree-dirname.sh\nindex 026f9f8..425d858 100755\n--- a/t/t3101-ls-tree-dirname.sh\n+++ b/t/t3101-ls-tree-dirname.sh\n@@ -35,7 +35,7 @@ test_expect_success 'setup' '\n \techo 222 >path3/2.txt &&\n \tfind *.txt path* \\( -type f -o -type l \\) -print |\n \txargs git update-index --add &&\n-\ttree=`git write-tree` &&\n+\ttree=$(git write-tree) &&\n \techo $tree\n '\n \n-- \n1.7.10.4\n"},{"id":"237615","messageId":"1395735989-3396-34-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 033/144] t3210-pack-refs.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:38Z","receivedAt":"2014-03-25T08:24:38Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3210-pack-refs.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh\nindex 1a2080e..b0eaf22 100755\n--- a/t/t3210-pack-refs.sh\n+++ b/t/t3210-pack-refs.sh\n@@ -25,7 +25,7 @@ SHA1=\n test_expect_success \\\n     'see if git show-ref works as expected' \\\n     'git branch a &&\n-     SHA1=`cat .git/refs/heads/a` &&\n+     SHA1=$(cat .git/refs/heads/a) &&\n      echo \"$SHA1 refs/heads/a\" >expect &&\n      git show-ref a >result &&\n      test_cmp expect result'\n-- \n1.7.10.4\n"},{"id":"237540","messageId":"1395735989-3396-35-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 034/144] t3403-rebase-skip.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:39Z","receivedAt":"2014-03-25T08:24:39Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3403-rebase-skip.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t3403-rebase-skip.sh b/t/t3403-rebase-skip.sh\nindex 3968020..1f5122b 100755\n--- a/t/t3403-rebase-skip.sh\n+++ b/t/t3403-rebase-skip.sh\n@@ -67,7 +67,7 @@ test_expect_success 'rebase --skip with --merge' '\n '\n \n test_expect_success 'merge and reference trees equal' '\n-\ttest -z \"`git diff-tree skip-merge skip-reference`\"\n+\ttest -z \"$(git diff-tree skip-merge skip-reference)\"\n '\n \n test_expect_success 'moved back to branch correctly' '\n-- \n1.7.10.4\n"},{"id":"237608","messageId":"1395735989-3396-36-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 035/144] t3511-cherry-pick-x.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:40Z","receivedAt":"2014-03-25T08:24:40Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3511-cherry-pick-x.sh |   14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)\n\ndiff --git a/t/t3511-cherry-pick-x.sh b/t/t3511-cherry-pick-x.sh\nindex f977279..f60a037 100755\n--- a/t/t3511-cherry-pick-x.sh\n+++ b/t/t3511-cherry-pick-x.sh\n@@ -59,7 +59,7 @@ test_expect_success setup '\n \n test_expect_success 'cherry-pick -x inserts blank line after one line subject' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-one-line^0` &&\n+\tsha1=$(git rev-parse mesg-one-line^0) &&\n \tgit cherry-pick -x mesg-one-line &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_one_line\n@@ -96,7 +96,7 @@ test_expect_success 'cherry-pick -s inserts blank line after non-conforming foot\n \n test_expect_success 'cherry-pick -x inserts blank line when conforming footer not found' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-no-footer^0` &&\n+\tsha1=$(git rev-parse mesg-no-footer^0) &&\n \tgit cherry-pick -x mesg-no-footer &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_no_footer\n@@ -121,7 +121,7 @@ test_expect_success 'cherry-pick -s inserts blank line when conforming footer no\n \n test_expect_success 'cherry-pick -x -s inserts blank line when conforming footer not found' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-no-footer^0` &&\n+\tsha1=$(git rev-parse mesg-no-footer^0) &&\n \tgit cherry-pick -x -s mesg-no-footer &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_no_footer\n@@ -146,7 +146,7 @@ test_expect_success 'cherry-pick -s adds sob when last sob doesnt match committe\n \n test_expect_success 'cherry-pick -x -s adds sob when last sob doesnt match committer' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-with-footer^0` &&\n+\tsha1=$(git rev-parse mesg-with-footer^0) &&\n \tgit cherry-pick -x -s mesg-with-footer &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_with_footer\n@@ -169,7 +169,7 @@ test_expect_success 'cherry-pick -s refrains from adding duplicate trailing sob'\n \n test_expect_success 'cherry-pick -x -s adds sob even when trailing sob exists for committer' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-with-footer-sob^0` &&\n+\tsha1=$(git rev-parse mesg-with-footer-sob^0) &&\n \tgit cherry-pick -x -s mesg-with-footer-sob &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_with_footer_sob\n@@ -182,7 +182,7 @@ test_expect_success 'cherry-pick -x -s adds sob even when trailing sob exists fo\n \n test_expect_success 'cherry-pick -x treats \"(cherry picked from...\" line as part of footer' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-with-cherry-footer^0` &&\n+\tsha1=$(git rev-parse mesg-with-cherry-footer^0) &&\n \tgit cherry-pick -x mesg-with-cherry-footer &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_with_cherry_footer\n@@ -205,7 +205,7 @@ test_expect_success 'cherry-pick -s treats \"(cherry picked from...\" line as part\n \n test_expect_success 'cherry-pick -x -s treats \"(cherry picked from...\" line as part of footer' '\n \tpristine_detach initial &&\n-\tsha1=`git rev-parse mesg-with-cherry-footer^0` &&\n+\tsha1=$(git rev-parse mesg-with-cherry-footer^0) &&\n \tgit cherry-pick -x -s mesg-with-cherry-footer &&\n \tcat <<-EOF >expect &&\n \t\t$mesg_with_cherry_footer\n-- \n1.7.10.4\n"},{"id":"237609","messageId":"1395735989-3396-37-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 036/144] t3600-rm.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:41Z","receivedAt":"2014-03-25T08:24:41Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3600-rm.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t3600-rm.sh b/t/t3600-rm.sh\nindex 3d30581..96f7949 100755\n--- a/t/t3600-rm.sh\n+++ b/t/t3600-rm.sh\n@@ -115,7 +115,7 @@ test_expect_success '\"rm\" command printed' '\n \tgit add test-file &&\n \tgit commit -m \"add file for rm test\" &&\n \tgit rm test-file > rm-output &&\n-\ttest `grep \"^rm \" rm-output | wc -l` = 1 &&\n+\ttest $(grep \"^rm \" rm-output | wc -l) = 1 &&\n \trm -f test-file rm-output &&\n \tgit commit -m \"remove file from rm test\"\n '\n@@ -125,7 +125,7 @@ test_expect_success '\"rm\" command suppressed with --quiet' '\n \tgit add test-file &&\n \tgit commit -m \"add file for rm --quiet test\" &&\n \tgit rm --quiet test-file > rm-output &&\n-\ttest `wc -l < rm-output` = 0 &&\n+\ttest $(wc -l < rm-output) = 0 &&\n \trm -f test-file rm-output &&\n \tgit commit -m \"remove file from rm --quiet test\"\n '\n-- \n1.7.10.4\n"},{"id":"237604","messageId":"1395735989-3396-38-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 037/144] t3700-add.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:42Z","receivedAt":"2014-03-25T08:24:42Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3700-add.sh |   16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/t/t3700-add.sh b/t/t3700-add.sh\nindex fe274e2..95eb234 100755\n--- a/t/t3700-add.sh\n+++ b/t/t3700-add.sh\n@@ -25,7 +25,7 @@ test_expect_success \\\n \t echo foo >xfoo1 &&\n \t chmod 755 xfoo1 &&\n \t git add xfoo1 &&\n-\t case \"`git ls-files --stage xfoo1`\" in\n+\t case \"$(git ls-files --stage xfoo1)\" in\n \t 100644\" \"*xfoo1) echo pass;;\n \t *) echo fail; git ls-files --stage xfoo1; (exit 1);;\n \t esac'\n@@ -33,7 +33,7 @@ test_expect_success \\\n test_expect_success 'git add: filemode=0 should not get confused by symlink' '\n \trm -f xfoo1 &&\n \ttest_ln_s_add foo xfoo1 &&\n-\tcase \"`git ls-files --stage xfoo1`\" in\n+\tcase \"$(git ls-files --stage xfoo1)\" in\n \t120000\" \"*xfoo1) echo pass;;\n \t*) echo fail; git ls-files --stage xfoo1; (exit 1);;\n \tesac\n@@ -45,7 +45,7 @@ test_expect_success \\\n \t echo foo >xfoo2 &&\n \t chmod 755 xfoo2 &&\n \t git update-index --add xfoo2 &&\n-\t case \"`git ls-files --stage xfoo2`\" in\n+\t case \"$(git ls-files --stage xfoo2)\" in\n \t 100644\" \"*xfoo2) echo pass;;\n \t *) echo fail; git ls-files --stage xfoo2; (exit 1);;\n \t esac'\n@@ -53,7 +53,7 @@ test_expect_success \\\n test_expect_success 'git add: filemode=0 should not get confused by symlink' '\n \trm -f xfoo2 &&\n \ttest_ln_s_add foo xfoo2 &&\n-\tcase \"`git ls-files --stage xfoo2`\" in\n+\tcase \"$(git ls-files --stage xfoo2)\" in\n \t120000\" \"*xfoo2) echo pass;;\n \t*) echo fail; git ls-files --stage xfoo2; (exit 1);;\n \tesac\n@@ -63,7 +63,7 @@ test_expect_success \\\n \t'git update-index --add: Test that executable bit is not used...' \\\n \t'git config core.filemode 0 &&\n \t test_ln_s_add xfoo2 xfoo3 &&\t# runs git update-index --add\n-\t case \"`git ls-files --stage xfoo3`\" in\n+\t case \"$(git ls-files --stage xfoo3)\" in\n \t 120000\" \"*xfoo3) echo pass;;\n \t *) echo fail; git ls-files --stage xfoo3; (exit 1);;\n \t esac'\n@@ -166,14 +166,14 @@ test_expect_success 'git add with filemode=0, symlinks=0 prefers stage 2 over st\n \n test_expect_success 'git add --refresh' '\n \t>foo && git add foo && git commit -a -m \"commit all\" &&\n-\ttest -z \"`git diff-index HEAD -- foo`\" &&\n+\ttest -z \"$(git diff-index HEAD -- foo)\" &&\n \tgit read-tree HEAD &&\n-\tcase \"`git diff-index HEAD -- foo`\" in\n+\tcase \"$(git diff-index HEAD -- foo)\" in\n \t:100644\" \"*\"M\tfoo\") echo pass;;\n \t*) echo fail; (exit 1);;\n \tesac &&\n \tgit add --refresh -- foo &&\n-\ttest -z \"`git diff-index HEAD -- foo`\"\n+\ttest -z \"$(git diff-index HEAD -- foo)\"\n '\n \n test_expect_success 'git add --refresh with pathspec' '\n-- \n1.7.10.4\n"},{"id":"237541","messageId":"1395735989-3396-39-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 038/144] t3905-stash-include-untracked.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:43Z","receivedAt":"2014-03-25T08:24:43Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3905-stash-include-untracked.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t3905-stash-include-untracked.sh b/t/t3905-stash-include-untracked.sh\nindex a5e7e6b..f372fc8 100755\n--- a/t/t3905-stash-include-untracked.sh\n+++ b/t/t3905-stash-include-untracked.sh\n@@ -96,8 +96,8 @@ test_expect_success 'stash pop after save --include-untracked leaves files untra\n \tgit stash pop &&\n \tgit status --porcelain >actual &&\n \ttest_cmp expect actual &&\n-\ttest \"1\" = \"`cat file2`\" &&\n-\ttest untracked = \"`cat untracked/untracked`\"\n+\ttest \"1\" = \"$(cat file2)\" &&\n+\ttest untracked = \"$(cat untracked/untracked)\"\n '\n \n git clean --force --quiet -d\n-- \n1.7.10.4\n"},{"id":"237610","messageId":"1395735989-3396-40-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 039/144] t3910-mac-os-precompose.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:44Z","receivedAt":"2014-03-25T08:24:44Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t3910-mac-os-precompose.sh |   16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/t/t3910-mac-os-precompose.sh b/t/t3910-mac-os-precompose.sh\nindex e4ba601..96941e9 100755\n--- a/t/t3910-mac-os-precompose.sh\n+++ b/t/t3910-mac-os-precompose.sh\n@@ -14,13 +14,13 @@ then\n fi\n \n # create utf-8 variables\n-Adiarnfc=`printf '\\303\\204'`\n-Adiarnfd=`printf 'A\\314\\210'`\n+Adiarnfc=$(printf '\\303\\204')\n+Adiarnfd=$(printf 'A\\314\\210')\n \n-Odiarnfc=`printf '\\303\\226'`\n-Odiarnfd=`printf 'O\\314\\210'`\n-AEligatu=`printf '\\303\\206'`\n-Invalidu=`printf '\\303\\377'`\n+Odiarnfc=$(printf '\\303\\226')\n+Odiarnfd=$(printf 'O\\314\\210')\n+AEligatu=$(printf '\\303\\206')\n+Invalidu=$(printf '\\303\\377')\n \n \n #Create a string with 255 bytes (decomposed)\n@@ -35,7 +35,7 @@ Alongc=$Alongc$Alongc$Alongc$Alongc$Alongc           #250 Byte\n Alongc=$Alongc$AEligatu$AEligatu                     #254 Byte\n \n test_expect_success \"detect if nfd needed\" '\n-\tprecomposeunicode=`git config core.precomposeunicode` &&\n+\tprecomposeunicode=$(git config core.precomposeunicode) &&\n \ttest \"$precomposeunicode\" = true &&\n \tgit config core.precomposeunicode true\n '\n@@ -146,7 +146,7 @@ test_expect_success \"respect git config --global core.precomposeunicode\" '\n \tgit config --global core.precomposeunicode true &&\n \trm -rf .git &&\n \tgit init &&\n-\tprecomposeunicode=`git config core.precomposeunicode` &&\n+\tprecomposeunicode=$(git config core.precomposeunicode) &&\n \ttest \"$precomposeunicode\" = \"true\"\n '\n \n-- \n1.7.10.4\n"},{"id":"237543","messageId":"1395735989-3396-41-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 040/144] t4006-diff-mode.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:45Z","receivedAt":"2014-03-25T08:24:45Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4006-diff-mode.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t4006-diff-mode.sh b/t/t4006-diff-mode.sh\nindex 0591149..76f643b 100755\n--- a/t/t4006-diff-mode.sh\n+++ b/t/t4006-diff-mode.sh\n@@ -13,7 +13,7 @@ sed_script='s/\\(:100644 100755\\) \\('\"$_x40\"'\\) \\2 /\\1 X X /'\n test_expect_success 'setup' '\n \techo frotz >rezrov &&\n \tgit update-index --add rezrov &&\n-\ttree=`git write-tree` &&\n+\ttree=$(git write-tree) &&\n \techo $tree\n '\n \n-- \n1.7.10.4\n"},{"id":"237542","messageId":"1395735989-3396-42-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 041/144] t4010-diff-pathspec.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:46Z","receivedAt":"2014-03-25T08:24:46Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4010-diff-pathspec.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t4010-diff-pathspec.sh b/t/t4010-diff-pathspec.sh\nindex 2bb9736..bf07841 100755\n--- a/t/t4010-diff-pathspec.sh\n+++ b/t/t4010-diff-pathspec.sh\n@@ -18,7 +18,7 @@ test_expect_success \\\n      mkdir path1 &&\n      echo rezrov >path1/file1 &&\n      git update-index --add file0 path1/file1 &&\n-     tree=`git write-tree` &&\n+     tree=$(git write-tree) &&\n      echo \"$tree\" &&\n      echo nitfol >file0 &&\n      echo yomin >path1/file1 &&\n@@ -131,7 +131,7 @@ test_expect_success 'diff multiple wildcard pathspecs' '\n \tmkdir path2 &&\n \techo rezrov >path2/file1 &&\n \tgit update-index --add path2/file1 &&\n-\ttree3=`git write-tree` &&\n+\ttree3=$(git write-tree) &&\n \tgit diff --name-only $tree $tree3 -- \"path2*1\" \"path1*1\" >actual &&\n \tcat <<-\\EOF >expect &&\n \tpath1/file1\n-- \n1.7.10.4\n"},{"id":"237605","messageId":"1395735989-3396-43-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 042/144] t4012-diff-binary.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:47Z","receivedAt":"2014-03-25T08:24:47Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4012-diff-binary.sh |   16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh\nindex 1215ae5..643d729 100755\n--- a/t/t4012-diff-binary.sh\n+++ b/t/t4012-diff-binary.sh\n@@ -67,18 +67,18 @@ test_expect_success C_LOCALE_OUTPUT 'apply detecting corrupt patch correctly' '\n \tgit diff >output &&\n \tsed -e \"s/-CIT/xCIT/\" <output >broken &&\n \ttest_must_fail git apply --stat --summary broken 2>detected &&\n-\tdetected=`cat detected` &&\n-\tdetected=`expr \"$detected\" : \"fatal.*at line \\\\([0-9]*\\\\)\\$\"` &&\n-\tdetected=`sed -ne \"${detected}p\" broken` &&\n+\tdetected=$(cat detected) &&\n+\tdetected=$(expr \"$detected\" : \"fatal.*at line \\\\([0-9]*\\\\)\\$\") &&\n+\tdetected=$(sed -ne \"${detected}p\" broken) &&\n \ttest \"$detected\" = xCIT\n '\n \n test_expect_success C_LOCALE_OUTPUT 'apply detecting corrupt patch correctly' '\n \tgit diff --binary | sed -e \"s/-CIT/xCIT/\" >broken &&\n \ttest_must_fail git apply --stat --summary broken 2>detected &&\n-\tdetected=`cat detected` &&\n-\tdetected=`expr \"$detected\" : \"fatal.*at line \\\\([0-9]*\\\\)\\$\"` &&\n-\tdetected=`sed -ne \"${detected}p\" broken` &&\n+\tdetected=$(cat detected) &&\n+\tdetected=$(expr \"$detected\" : \"fatal.*at line \\\\([0-9]*\\\\)\\$\") &&\n+\tdetected=$(sed -ne \"${detected}p\" broken) &&\n \ttest \"$detected\" = xCIT\n '\n \n@@ -88,7 +88,7 @@ test_expect_success 'initial commit' 'git commit -a -m initial'\n test_expect_success 'diff-index with --binary' '\n \techo AIT >a && mv b e && echo CIT >c && cat e >d &&\n \tgit update-index --add --remove a b c d e &&\n-\ttree0=`git write-tree` &&\n+\ttree0=$(git write-tree) &&\n \tgit diff --cached --binary >current &&\n \tgit apply --stat --summary current\n '\n@@ -96,7 +96,7 @@ test_expect_success 'diff-index with --binary' '\n test_expect_success 'apply binary patch' '\n \tgit reset --hard &&\n \tgit apply --binary --index <current &&\n-\ttree1=`git write-tree` &&\n+\ttree1=$(git write-tree) &&\n \ttest \"$tree1\" = \"$tree0\"\n '\n \n-- \n1.7.10.4\n"},{"id":"237611","messageId":"1395735989-3396-44-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 043/144] t4013-diff-various.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:48Z","receivedAt":"2014-03-25T08:24:48Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4013-diff-various.sh |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh\nindex e77c09c..805b055 100755\n--- a/t/t4013-diff-various.sh\n+++ b/t/t4013-diff-various.sh\n@@ -107,14 +107,14 @@ test_expect_success setup '\n +*++ [initial] Initial\n EOF\n \n-V=`git version | sed -e 's/^git version //' -e 's/\\./\\\\./g'`\n+V=$(git version | sed -e 's/^git version //' -e 's/\\./\\\\./g')\n while read cmd\n do\n \tcase \"$cmd\" in\n \t'' | '#'*) continue ;;\n \tesac\n-\ttest=`echo \"$cmd\" | sed -e 's|[/ ][/ ]*|_|g'`\n-\tpfx=`printf \"%04d\" $test_count`\n+\ttest=$(echo \"$cmd\" | sed -e 's|[/ ][/ ]*|_|g')\n+\tpfx=$(printf \"%04d\" $test_count)\n \texpect=\"$TEST_DIRECTORY/t4013/diff.$test\"\n \tactual=\"$pfx-diff.$test\"\n \n-- \n1.7.10.4\n"},{"id":"237606","messageId":"1395735989-3396-45-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 044/144] t4014-format-patch.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:49Z","receivedAt":"2014-03-25T08:24:49Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4014-format-patch.sh |   10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh\nindex 73194b2..f9ed598 100755\n--- a/t/t4014-format-patch.sh\n+++ b/t/t4014-format-patch.sh\n@@ -43,7 +43,7 @@ test_expect_success setup '\n test_expect_success \"format-patch --ignore-if-in-upstream\" '\n \n \tgit format-patch --stdout master..side >patch0 &&\n-\tcnt=`grep \"^From \" patch0 | wc -l` &&\n+\tcnt=$(grep \"^From \" patch0 | wc -l) &&\n \ttest $cnt = 3\n \n '\n@@ -52,7 +52,7 @@ test_expect_success \"format-patch --ignore-if-in-upstream\" '\n \n \tgit format-patch --stdout \\\n \t\t--ignore-if-in-upstream master..side >patch1 &&\n-\tcnt=`grep \"^From \" patch1 | wc -l` &&\n+\tcnt=$(grep \"^From \" patch1 | wc -l) &&\n \ttest $cnt = 2\n \n '\n@@ -69,7 +69,7 @@ test_expect_success \"format-patch doesn't consider merge commits\" '\n \tgit checkout -b merger master &&\n \ttest_tick &&\n \tgit merge --no-ff slave &&\n-\tcnt=`git format-patch -3 --stdout | grep \"^From \" | wc -l` &&\n+\tcnt=$(git format-patch -3 --stdout | grep \"^From \" | wc -l) &&\n \ttest $cnt = 3\n '\n \n@@ -77,7 +77,7 @@ test_expect_success \"format-patch result applies\" '\n \n \tgit checkout -b rebuild-0 master &&\n \tgit am -3 patch0 &&\n-\tcnt=`git rev-list master.. | wc -l` &&\n+\tcnt=$(git rev-list master.. | wc -l) &&\n \ttest $cnt = 2\n '\n \n@@ -85,7 +85,7 @@ test_expect_success \"format-patch --ignore-if-in-upstream result applies\" '\n \n \tgit checkout -b rebuild-1 master &&\n \tgit am -3 patch1 &&\n-\tcnt=`git rev-list master.. | wc -l` &&\n+\tcnt=$(git rev-list master.. | wc -l) &&\n \ttest $cnt = 2\n '\n \n-- \n1.7.10.4\n"},{"id":"237607","messageId":"1395735989-3396-46-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 045/144] t4036-format-patch-signer-mime.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:50Z","receivedAt":"2014-03-25T08:24:50Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4036-format-patch-signer-mime.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t4036-format-patch-signer-mime.sh b/t/t4036-format-patch-signer-mime.sh\nindex ba43f18..98d9713 100755\n--- a/t/t4036-format-patch-signer-mime.sh\n+++ b/t/t4036-format-patch-signer-mime.sh\n@@ -42,7 +42,7 @@ test_expect_success 'attach and signoff do not duplicate mime headers' '\n \n \tGIT_COMMITTER_NAME=\"はまの ふにおう\" \\\n \tgit format-patch -s --stdout -1 --attach >output &&\n-\ttest `grep -ci ^MIME-Version: output` = 1\n+\ttest $(grep -ci ^MIME-Version: output) = 1\n \n '\n \n-- \n1.7.10.4\n"},{"id":"237602","messageId":"1395735989-3396-47-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 046/144] t4038-diff-combined.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:51Z","receivedAt":"2014-03-25T08:24:51Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4038-diff-combined.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t4038-diff-combined.sh b/t/t4038-diff-combined.sh\nindex 1019d7b..41913c3 100755\n--- a/t/t4038-diff-combined.sh\n+++ b/t/t4038-diff-combined.sh\n@@ -94,7 +94,7 @@ test_expect_success 'setup for --cc --raw' '\n \tblob=$(echo file | git hash-object --stdin -w) &&\n \tbase_tree=$(echo \"100644 blob $blob\tfile\" | git mktree) &&\n \ttrees= &&\n-\tfor i in `test_seq 1 40`\n+\tfor i in $(test_seq 1 40)\n \tdo\n \t\tblob=$(echo file$i | git hash-object --stdin -w) &&\n \t\ttrees=\"$trees$(echo \"100644 blob $blob\tfile\" | git mktree)$LF\"\n-- \n1.7.10.4\n"},{"id":"237603","messageId":"1395735989-3396-48-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 047/144] t4057-diff-combined-paths.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:52Z","receivedAt":"2014-03-25T08:24:52Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4057-diff-combined-paths.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t4057-diff-combined-paths.sh b/t/t4057-diff-combined-paths.sh\nindex 097e632..dff36b7 100755\n--- a/t/t4057-diff-combined-paths.sh\n+++ b/t/t4057-diff-combined-paths.sh\n@@ -5,7 +5,7 @@ test_description='combined diff show only paths that are different to all parent\n . ./test-lib.sh\n \n # verify that diffc.expect matches output of\n-# `git diff -c --name-only HEAD HEAD^ HEAD^2`\n+# $(git diff -c --name-only HEAD HEAD^ HEAD^2)\n diffc_verify () {\n \tgit diff -c --name-only HEAD HEAD^ HEAD^2 >diffc.actual &&\n \ttest_cmp diffc.expect diffc.actual\n-- \n1.7.10.4\n"},{"id":"237544","messageId":"1395735989-3396-49-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 048/144] t4116-apply-reverse.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:53Z","receivedAt":"2014-03-25T08:24:53Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4116-apply-reverse.sh |   12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)\n\ndiff --git a/t/t4116-apply-reverse.sh b/t/t4116-apply-reverse.sh\nindex 1e4d438..ce8567f 100755\n--- a/t/t4116-apply-reverse.sh\n+++ b/t/t4116-apply-reverse.sh\n@@ -30,10 +30,10 @@ test_expect_success setup '\n \n test_expect_success 'apply in forward' '\n \n-\tT0=`git rev-parse \"second^{tree}\"` &&\n+\tT0=$(git rev-parse \"second^{tree}\") &&\n \tgit reset --hard initial &&\n \tgit apply --index --binary patch &&\n-\tT1=`git write-tree` &&\n+\tT1=$(git write-tree) &&\n \ttest \"$T0\" = \"$T1\"\n '\n \n@@ -62,22 +62,22 @@ test_expect_success 'setup separate repository lacking postimage' '\n \n test_expect_success 'apply in forward without postimage' '\n \n-\tT0=`git rev-parse \"second^{tree}\"` &&\n+\tT0=$(git rev-parse \"second^{tree}\") &&\n \t(\n \t\tcd initial &&\n \t\tgit apply --index --binary ../patch &&\n-\t\tT1=`git write-tree` &&\n+\t\tT1=$(git write-tree) &&\n \t\ttest \"$T0\" = \"$T1\"\n \t)\n '\n \n test_expect_success 'apply in reverse without postimage' '\n \n-\tT0=`git rev-parse \"initial^{tree}\"` &&\n+\tT0=$(git rev-parse \"initial^{tree}\") &&\n \t(\n \t\tcd second &&\n \t\tgit apply --index --binary --reverse ../patch &&\n-\t\tT1=`git write-tree` &&\n+\t\tT1=$(git write-tree) &&\n \t\ttest \"$T0\" = \"$T1\"\n \t)\n '\n-- \n1.7.10.4\n"},{"id":"237545","messageId":"1395735989-3396-50-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 049/144] t4119-apply-config.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:54Z","receivedAt":"2014-03-25T08:24:54Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4119-apply-config.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t4119-apply-config.sh b/t/t4119-apply-config.sh\nindex 3d0384d..c393be6 100755\n--- a/t/t4119-apply-config.sh\n+++ b/t/t4119-apply-config.sh\n@@ -68,7 +68,7 @@ test_expect_success 'apply --whitespace=strip from config' '\n \tcheck_result sub/file1\n '\n \n-D=`pwd`\n+D=$(pwd)\n \n test_expect_success 'apply --whitespace=strip in subdir' '\n \n-- \n1.7.10.4\n"},{"id":"237601","messageId":"1395735989-3396-51-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 050/144] t4204-patch-id.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:55Z","receivedAt":"2014-03-25T08:24:55Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t4204-patch-id.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t4204-patch-id.sh b/t/t4204-patch-id.sh\nindex d2c930d..7940f6f 100755\n--- a/t/t4204-patch-id.sh\n+++ b/t/t4204-patch-id.sh\n@@ -45,8 +45,8 @@ test_expect_success 'patch-id supports git-format-patch output' '\n \tgit checkout same &&\n \tgit format-patch -1 --stdout | calc_patch_id same &&\n \ttest_cmp patch-id_master patch-id_same &&\n-\tset `git format-patch -1 --stdout | git patch-id` &&\n-\ttest \"$2\" = `git rev-parse HEAD`\n+\tset $(git format-patch -1 --stdout | git patch-id) &&\n+\ttest \"$2\" = $(git rev-parse HEAD)\n '\n \n test_expect_success 'whitespace is irrelevant in footer' '\n-- \n1.7.10.4\n"},{"id":"237599","messageId":"1395735989-3396-52-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 051/144] t5000-tar-tree.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:56Z","receivedAt":"2014-03-25T08:24:56Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5000-tar-tree.sh |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh\nindex 1cf0a4e..74fc5a8 100755\n--- a/t/t5000-tar-tree.sh\n+++ b/t/t5000-tar-tree.sh\n@@ -123,7 +123,7 @@ test_expect_success \\\n     'add files to repository' \\\n     'find a -type f | xargs git update-index --add &&\n      find a -type l | xargs git update-index --add &&\n-     treeid=`git write-tree` &&\n+     treeid=$(git write-tree) &&\n      echo $treeid >treeid &&\n      git update-ref HEAD $(TZ=GMT GIT_COMMITTER_DATE=\"2005-05-27 22:00:00\" \\\n      git commit-tree $treeid </dev/null)'\n@@ -207,7 +207,7 @@ test_expect_success \\\n \n test_expect_success 'clients cannot access unreachable commits' '\n \ttest_commit unreachable &&\n-\tsha1=`git rev-parse HEAD` &&\n+\tsha1=$(git rev-parse HEAD) &&\n \tgit reset --hard HEAD^ &&\n \tgit archive $sha1 >remote.tar &&\n \ttest_must_fail git archive --remote=. $sha1 >remote.tar\n@@ -215,7 +215,7 @@ test_expect_success 'clients cannot access unreachable commits' '\n \n test_expect_success 'upload-archive can allow unreachable commits' '\n \ttest_commit unreachable1 &&\n-\tsha1=`git rev-parse HEAD` &&\n+\tsha1=$(git rev-parse HEAD) &&\n \tgit reset --hard HEAD^ &&\n \tgit archive $sha1 >remote.tar &&\n \ttest_config uploadarchive.allowUnreachable true &&\n-- \n1.7.10.4\n"},{"id":"237600","messageId":"1395735989-3396-53-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 052/144] t5003-archive-zip.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:57Z","receivedAt":"2014-03-25T08:24:57Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5003-archive-zip.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5003-archive-zip.sh b/t/t5003-archive-zip.sh\nindex c72f71e..8f04a56 100755\n--- a/t/t5003-archive-zip.sh\n+++ b/t/t5003-archive-zip.sh\n@@ -65,7 +65,7 @@ test_expect_success \\\n     'add files to repository' \\\n     'find a -type f | xargs git update-index --add &&\n      find a -type l | xargs git update-index --add &&\n-     treeid=`git write-tree` &&\n+     treeid=$(git write-tree) &&\n      echo $treeid >treeid &&\n      git update-ref HEAD $(TZ=GMT GIT_COMMITTER_DATE=\"2005-05-27 22:00:00\" \\\n      git commit-tree $treeid </dev/null)'\n-- \n1.7.10.4\n"},{"id":"237547","messageId":"1395735989-3396-54-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 053/144] t5100-mailinfo.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:58Z","receivedAt":"2014-03-25T08:24:58Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5100-mailinfo.sh |   12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)\n\ndiff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh\nindex 3e64a7a..c279410 100755\n--- a/t/t5100-mailinfo.sh\n+++ b/t/t5100-mailinfo.sh\n@@ -9,9 +9,9 @@ test_description='git mailinfo and git mailsplit test'\n \n test_expect_success 'split sample box' \\\n \t'git mailsplit -o. \"$TEST_DIRECTORY\"/t5100/sample.mbox >last &&\n-\tlast=`cat last` &&\n+\tlast=$(cat last) &&\n \techo total is $last &&\n-\ttest `cat last` = 17'\n+\ttest $(cat last) = 17'\n \n check_mailinfo () {\n \tmail=$1 opt=$2\n@@ -23,7 +23,7 @@ check_mailinfo () {\n }\n \n \n-for mail in `echo 00*`\n+for mail in $(echo 00*)\n do\n \ttest_expect_success \"mailinfo $mail\" '\n \t\tcheck_mailinfo $mail \"\" &&\n@@ -43,11 +43,11 @@ test_expect_success 'split box with rfc2047 samples' \\\n \t'mkdir rfc2047 &&\n \tgit mailsplit -orfc2047 \"$TEST_DIRECTORY\"/t5100/rfc2047-samples.mbox \\\n \t  >rfc2047/last &&\n-\tlast=`cat rfc2047/last` &&\n+\tlast=$(cat rfc2047/last) &&\n \techo total is $last &&\n-\ttest `cat rfc2047/last` = 11'\n+\ttest $(cat rfc2047/last) = 11'\n \n-for mail in `echo rfc2047/00*`\n+for mail in $(echo rfc2047/00*)\n do\n \ttest_expect_success \"mailinfo $mail\" '\n \t\tgit mailinfo -u $mail-msg $mail-patch <$mail >$mail-info &&\n-- \n1.7.10.4\n"},{"id":"237596","messageId":"1395735989-3396-55-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 054/144] t5300-pack-object.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:24:59Z","receivedAt":"2014-03-25T08:24:59Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5300-pack-object.sh |   18 +++++++++---------\n 1 file changed, 9 insertions(+), 9 deletions(-)\n\ndiff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh\nindex 20c1961..fc2be63 100755\n--- a/t/t5300-pack-object.sh\n+++ b/t/t5300-pack-object.sh\n@@ -8,7 +8,7 @@ test_description='git pack-object\n '\n . ./test-lib.sh\n \n-TRASH=`pwd`\n+TRASH=$(pwd)\n \n test_expect_success \\\n     'setup' \\\n@@ -20,8 +20,8 @@ test_expect_success \\\n      test-genrandom \"seed b\" 2097152 > b_big &&\n      git update-index --add a a_big b b_big c &&\n      cat c >d && echo foo >>d && git update-index --add d &&\n-     tree=`git write-tree` &&\n-     commit=`git commit-tree $tree </dev/null` && {\n+     tree=$(git write-tree) &&\n+     commit=$(git commit-tree $tree </dev/null) && {\n \t echo $tree &&\n \t echo $commit &&\n \t git ls-tree $tree | sed -e \"s/.* \\\\([0-9a-f]*\\\\)\t.*/\\\\1/\"\n@@ -29,7 +29,7 @@ test_expect_success \\\n \t git diff-tree --root -p $commit &&\n \t while read object\n \t do\n-\t    t=`git cat-file -t $object` &&\n+\t    t=$(git cat-file -t $object) &&\n \t    git cat-file $t $object || return 1\n \t done <obj-list\n      } >expect'\n@@ -147,7 +147,7 @@ test_expect_success \\\n \t git diff-tree --root -p $commit &&\n \t while read object\n \t do\n-\t    t=`git cat-file -t $object` &&\n+\t    t=$(git cat-file -t $object) &&\n \t    git cat-file $t $object || return 1\n \t done <obj-list\n     } >current &&\n@@ -162,7 +162,7 @@ test_expect_success \\\n \t git diff-tree --root -p $commit &&\n \t while read object\n \t do\n-\t    t=`git cat-file -t $object` &&\n+\t    t=$(git cat-file -t $object) &&\n \t    git cat-file $t $object || return 1\n \t done <obj-list\n     } >current &&\n@@ -177,7 +177,7 @@ test_expect_success \\\n \t git diff-tree --root -p $commit &&\n \t while read object\n \t do\n-\t    t=`git cat-file -t $object` &&\n+\t    t=$(git cat-file -t $object) &&\n \t    git cat-file $t $object || return 1\n \t done <obj-list\n     } >current &&\n@@ -252,8 +252,8 @@ test_expect_success \\\n \n test_expect_success \\\n     'verify-pack catches a corrupted sum of the index file itself' \\\n-    'l=`wc -c <test-3.idx` &&\n-     l=`expr $l - 20` &&\n+    'l=$(wc -c <test-3.idx) &&\n+     l=$(expr $l - 20) &&\n      cat test-1-${packname_1}.pack >test-3.pack &&\n      printf \"%20s\" \"\" | dd of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&\n      if git verify-pack test-3.pack\n-- \n1.7.10.4\n"},{"id":"237597","messageId":"1395735989-3396-56-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 055/144] t5301-sliding-window.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:00Z","receivedAt":"2014-03-25T08:25:00Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5301-sliding-window.sh |   14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)\n\ndiff --git a/t/t5301-sliding-window.sh b/t/t5301-sliding-window.sh\nindex 2fc5af6..cae8c2e 100755\n--- a/t/t5301-sliding-window.sh\n+++ b/t/t5301-sliding-window.sh\n@@ -16,12 +16,12 @@ test_expect_success \\\n          git update-index --add $i || return 1\n      done &&\n      echo d >d && cat c >>d && git update-index --add d &&\n-     tree=`git write-tree` &&\n-     commit1=`git commit-tree $tree </dev/null` &&\n+     tree=$(git write-tree) &&\n+     commit1=$(git commit-tree $tree </dev/null) &&\n      git update-ref HEAD $commit1 &&\n      git repack -a -d &&\n-     test \"`git count-objects`\" = \"0 objects, 0 kilobytes\" &&\n-     pack1=`ls .git/objects/pack/*.pack` &&\n+     test \"$(git count-objects)\" = \"0 objects, 0 kilobytes\" &&\n+     pack1=$(ls .git/objects/pack/*.pack) &&\n      test -f \"$pack1\"'\n \n test_expect_success \\\n@@ -43,11 +43,11 @@ test_expect_success \\\n     'repack -a -d, packedGit{WindowSize,Limit} == 1 page' \\\n     'git config core.packedGitWindowSize 512 &&\n      git config core.packedGitLimit 512 &&\n-     commit2=`git commit-tree $tree -p $commit1 </dev/null` &&\n+     commit2=$(git commit-tree $tree -p $commit1 </dev/null) &&\n      git update-ref HEAD $commit2 &&\n      git repack -a -d &&\n-     test \"`git count-objects`\" = \"0 objects, 0 kilobytes\" &&\n-     pack2=`ls .git/objects/pack/*.pack` &&\n+     test \"$(git count-objects)\" = \"0 objects, 0 kilobytes\" &&\n+     pack2=$(ls .git/objects/pack/*.pack) &&\n      test -f \"$pack2\" &&\n      test \"$pack1\" \\!= \"$pack2\"'\n \n-- \n1.7.10.4\n"},{"id":"237548","messageId":"1395735989-3396-57-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 056/144] t5302-pack-index.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:01Z","receivedAt":"2014-03-25T08:25:01Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5302-pack-index.sh |   34 +++++++++++++++++-----------------\n 1 file changed, 17 insertions(+), 17 deletions(-)\n\ndiff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh\nindex 4bbb718..442ee5c 100755\n--- a/t/t5302-pack-index.sh\n+++ b/t/t5302-pack-index.sh\n@@ -14,21 +14,21 @@ test_expect_success \\\n      i=1 &&\n      while test $i -le 100\n      do\n-         iii=`printf '%03i' $i`\n+         iii=$(printf '%03i' $i)\n          test-genrandom \"bar\" 200 > wide_delta_$iii &&\n          test-genrandom \"baz $iii\" 50 >> wide_delta_$iii &&\n          test-genrandom \"foo\"$i 100 > deep_delta_$iii &&\n-         test-genrandom \"foo\"`expr $i + 1` 100 >> deep_delta_$iii &&\n-         test-genrandom \"foo\"`expr $i + 2` 100 >> deep_delta_$iii &&\n+         test-genrandom \"foo\"$(expr $i + 1) 100 >> deep_delta_$iii &&\n+         test-genrandom \"foo\"$(expr $i + 2) 100 >> deep_delta_$iii &&\n          echo $iii >file_$iii &&\n          test-genrandom \"$iii\" 8192 >>file_$iii &&\n          git update-index --add file_$iii deep_delta_$iii wide_delta_$iii &&\n-         i=`expr $i + 1` || return 1\n+         i=$(expr $i + 1) || return 1\n      done &&\n      { echo 101 && test-genrandom 100 8192; } >file_101 &&\n      git update-index --add file_101 &&\n-     tree=`git write-tree` &&\n-     commit=`git commit-tree $tree </dev/null` && {\n+     tree=$(git write-tree) &&\n+     commit=$(git commit-tree $tree </dev/null) && {\n \t echo $tree &&\n \t git ls-tree $tree | sed -e \"s/.* \\\\([0-9a-f]*\\\\)\t.*/\\\\1/\"\n      } >obj-list &&\n@@ -152,10 +152,10 @@ test_expect_success \\\n     '[index v1] 2) create a stealth corruption in a delta base reference' \\\n     '# This test assumes file_101 is a delta smaller than 16 bytes.\n      # It should be against file_100 but we substitute its base for file_099\n-     sha1_101=`git hash-object file_101` &&\n-     sha1_099=`git hash-object file_099` &&\n-     offs_101=`index_obj_offset 1.idx $sha1_101` &&\n-     nr_099=`index_obj_nr 1.idx $sha1_099` &&\n+     sha1_101=$(git hash-object file_101) &&\n+     sha1_099=$(git hash-object file_099) &&\n+     offs_101=$(index_obj_offset 1.idx $sha1_101) &&\n+     nr_099=$(index_obj_nr 1.idx $sha1_099) &&\n      chmod +w \".git/objects/pack/pack-${pack1}.pack\" &&\n      dd of=\".git/objects/pack/pack-${pack1}.pack\" seek=$(($offs_101 + 1)) \\\n         if=\".git/objects/pack/pack-${pack1}.idx\" \\\n@@ -193,10 +193,10 @@ test_expect_success \\\n     '[index v2] 2) create a stealth corruption in a delta base reference' \\\n     '# This test assumes file_101 is a delta smaller than 16 bytes.\n      # It should be against file_100 but we substitute its base for file_099\n-     sha1_101=`git hash-object file_101` &&\n-     sha1_099=`git hash-object file_099` &&\n-     offs_101=`index_obj_offset 1.idx $sha1_101` &&\n-     nr_099=`index_obj_nr 1.idx $sha1_099` &&\n+     sha1_101=$(git hash-object file_101) &&\n+     sha1_099=$(git hash-object file_099) &&\n+     offs_101=$(index_obj_offset 1.idx $sha1_101) &&\n+     nr_099=$(index_obj_nr 1.idx $sha1_099) &&\n      chmod +w \".git/objects/pack/pack-${pack1}.pack\" &&\n      dd of=\".git/objects/pack/pack-${pack1}.pack\" seek=$(($offs_101 + 1)) \\\n         if=\".git/objects/pack/pack-${pack1}.idx\" \\\n@@ -222,11 +222,11 @@ test_expect_success \\\n     'rm -f .git/objects/pack/* &&\n      git index-pack --index-version=2 --stdin < \"test-1-${pack1}.pack\" &&\n      git verify-pack \".git/objects/pack/pack-${pack1}.pack\" &&\n-     obj=`git hash-object file_001` &&\n-     nr=`index_obj_nr \".git/objects/pack/pack-${pack1}.idx\" $obj` &&\n+     obj=$(git hash-object file_001) &&\n+     nr=$(index_obj_nr \".git/objects/pack/pack-${pack1}.idx\" $obj) &&\n      chmod +w \".git/objects/pack/pack-${pack1}.idx\" &&\n      printf xxxx | dd of=\".git/objects/pack/pack-${pack1}.idx\" conv=notrunc \\\n-        bs=1 count=4 seek=$((8 + 256 * 4 + `wc -l <obj-list` * 20 + $nr * 4)) &&\n+        bs=1 count=4 seek=$((8 + 256 * 4 + $(wc -l <obj-list) * 20 + $nr * 4)) &&\n      ( while read obj\n        do git cat-file -p $obj >/dev/null || exit 1\n        done <obj-list ) &&\n-- \n1.7.10.4\n"},{"id":"237589","messageId":"1395735989-3396-58-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 057/144] t5303-pack-corruption-resilience.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:02Z","receivedAt":"2014-03-25T08:25:02Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5303-pack-corruption-resilience.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t5303-pack-corruption-resilience.sh b/t/t5303-pack-corruption-resilience.sh\nindex 663b02b..98bed18 100755\n--- a/t/t5303-pack-corruption-resilience.sh\n+++ b/t/t5303-pack-corruption-resilience.sh\n@@ -32,9 +32,9 @@ create_test_files() {\n create_new_pack() {\n     rm -rf .git &&\n     git init &&\n-    blob_1=`git hash-object -t blob -w file_1` &&\n-    blob_2=`git hash-object -t blob -w file_2` &&\n-    blob_3=`git hash-object -t blob -w file_3` &&\n+    blob_1=$(git hash-object -t blob -w file_1) &&\n+    blob_2=$(git hash-object -t blob -w file_2) &&\n+    blob_3=$(git hash-object -t blob -w file_3) &&\n     pack=`printf \"$blob_1\\n$blob_2\\n$blob_3\\n\" |\n           git pack-objects $@ .git/objects/pack/pack` &&\n     pack=\".git/objects/pack/pack-${pack}\" &&\n@@ -48,7 +48,7 @@ do_repack() {\n }\n \n do_corrupt_object() {\n-    ofs=`git show-index < ${pack}.idx | grep $1 | cut -f1 -d\" \"` &&\n+    ofs=$(git show-index < ${pack}.idx | grep $1 | cut -f1 -d\" \") &&\n     ofs=$(($ofs + $2)) &&\n     chmod +w ${pack}.pack &&\n     dd of=${pack}.pack bs=1 conv=notrunc seek=$ofs &&\n-- \n1.7.10.4\n"},{"id":"237546","messageId":"1395735989-3396-59-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 058/144] t5304-prune.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:03Z","receivedAt":"2014-03-25T08:25:03Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5304-prune.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5304-prune.sh b/t/t5304-prune.sh\nindex 66c9a41..84501a5 100755\n--- a/t/t5304-prune.sh\n+++ b/t/t5304-prune.sh\n@@ -222,7 +222,7 @@ EOF\n '\n \n test_expect_success 'prune .git/shallow' '\n-\tSHA1=`echo hi|git commit-tree HEAD^{tree}` &&\n+\tSHA1=$(echo hi|git commit-tree HEAD^{tree}) &&\n \techo $SHA1 >.git/shallow &&\n \tgit prune --dry-run >out &&\n \tgrep $SHA1 .git/shallow &&\n-- \n1.7.10.4\n"},{"id":"237593","messageId":"1395735989-3396-60-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 059/144] t5305-include-tag.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:04Z","receivedAt":"2014-03-25T08:25:04Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5305-include-tag.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t5305-include-tag.sh b/t/t5305-include-tag.sh\nindex b061864..74b4a03 100755\n--- a/t/t5305-include-tag.sh\n+++ b/t/t5305-include-tag.sh\n@@ -3,20 +3,20 @@\n test_description='git pack-object --include-tag'\n . ./test-lib.sh\n \n-TRASH=`pwd`\n+TRASH=$(pwd)\n \n test_expect_success setup '\n \techo c >d &&\n \tgit update-index --add d &&\n-\ttree=`git write-tree` &&\n-\tcommit=`git commit-tree $tree </dev/null` &&\n+\ttree=$(git write-tree) &&\n+\tcommit=$(git commit-tree $tree </dev/null) &&\n \techo \"object $commit\" >sig &&\n \techo \"type commit\" >>sig &&\n \techo \"tag mytag\" >>sig &&\n \techo \"tagger $(git var GIT_COMMITTER_IDENT)\" >>sig &&\n \techo >>sig &&\n \techo \"our test tag\" >>sig &&\n-\ttag=`git mktag <sig` &&\n+\ttag=$(git mktag <sig) &&\n \trm d sig &&\n \tgit update-ref refs/tags/mytag $tag && {\n \t\techo $tree &&\n-- \n1.7.10.4\n"},{"id":"237594","messageId":"1395735989-3396-61-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 060/144] t5500-fetch-pack.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:05Z","receivedAt":"2014-03-25T08:25:05Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5500-fetch-pack.sh |   16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh\nindex 5b2b1c2..99b81e2 100755\n--- a/t/t5500-fetch-pack.sh\n+++ b/t/t5500-fetch-pack.sh\n@@ -14,7 +14,7 @@ test_description='Testing multi_ack pack fetching'\n add () {\n \tname=$1 &&\n \ttext=\"$@\" &&\n-\tbranch=`echo $name | sed -e 's/^\\(.\\).*$/\\1/'` &&\n+\tbranch=$(echo $name | sed -e 's/^\\(.\\).*$/\\1/') &&\n \tparents=\"\" &&\n \n \tshift &&\n@@ -56,12 +56,12 @@ pull_to_client () {\n \t\t\tgit fsck --full &&\n \n \t\t\tmv .git/objects/pack/pack-* . &&\n-\t\t\tp=`ls -1 pack-*.pack` &&\n+\t\t\tp=$(ls -1 pack-*.pack) &&\n \t\t\tgit unpack-objects <$p &&\n \t\t\tgit fsck --full &&\n \n-\t\t\tidx=`echo pack-*.idx` &&\n-\t\t\tpack_count=`git show-index <$idx | wc -l` &&\n+\t\t\tidx=$(echo pack-*.idx) &&\n+\t\t\tpack_count=$(git show-index <$idx | wc -l) &&\n \t\t\ttest $pack_count = $count &&\n \t\t\trm -f pack-*\n \t\t)\n@@ -132,13 +132,13 @@ test_expect_success 'single given branch clone' '\n \n test_expect_success 'clone shallow depth 1' '\n \tgit clone --no-single-branch --depth 1 \"file://$(pwd)/.\" shallow0 &&\n-\ttest \"`git --git-dir=shallow0/.git rev-list --count HEAD`\" = 1\n+\ttest \"$(git --git-dir=shallow0/.git rev-list --count HEAD)\" = 1\n '\n \n test_expect_success 'clone shallow depth 1 with fsck' '\n \tgit config --global fetch.fsckobjects true &&\n \tgit clone --no-single-branch --depth 1 \"file://$(pwd)/.\" shallow0fsck &&\n-\ttest \"`git --git-dir=shallow0fsck/.git rev-list --count HEAD`\" = 1 &&\n+\ttest \"$(git --git-dir=shallow0fsck/.git rev-list --count HEAD)\" = 1 &&\n \tgit config --global --unset fetch.fsckobjects\n '\n \n@@ -147,7 +147,7 @@ test_expect_success 'clone shallow' '\n '\n \n test_expect_success 'clone shallow depth count' '\n-\ttest \"`git --git-dir=shallow/.git rev-list --count HEAD`\" = 2\n+\ttest \"$(git --git-dir=shallow/.git rev-list --count HEAD)\" = 2\n '\n \n test_expect_success 'clone shallow object count' '\n@@ -273,7 +273,7 @@ test_expect_success 'additional simple shallow deepenings' '\n '\n \n test_expect_success 'clone shallow depth count' '\n-\ttest \"`git --git-dir=shallow/.git rev-list --count HEAD`\" = 11\n+\ttest \"$(git --git-dir=shallow/.git rev-list --count HEAD)\" = 11\n '\n \n test_expect_success 'clone shallow object count' '\n-- \n1.7.10.4\n"},{"id":"237598","messageId":"1395735989-3396-62-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 061/144] t5505-remote.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:06Z","receivedAt":"2014-03-25T08:25:06Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5505-remote.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5505-remote.sh b/t/t5505-remote.sh\nindex ac79dd9..366a583 100755\n--- a/t/t5505-remote.sh\n+++ b/t/t5505-remote.sh\n@@ -85,7 +85,7 @@ test_expect_success C_LOCALE_OUTPUT 'check remote-tracking' '\n test_expect_success 'remote forces tracking branches' '\n \t(\n \t\tcd test &&\n-\t\tcase `git config remote.second.fetch` in\n+\t\tcase $(git config remote.second.fetch) in\n \t\t+*) true ;;\n \t\t *) false ;;\n \t\tesac\n-- \n1.7.10.4\n"},{"id":"237595","messageId":"1395735989-3396-63-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 062/144] t5506-remote-groups.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:07Z","receivedAt":"2014-03-25T08:25:07Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5506-remote-groups.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5506-remote-groups.sh b/t/t5506-remote-groups.sh\nindex 530b016..83d5558 100755\n--- a/t/t5506-remote-groups.sh\n+++ b/t/t5506-remote-groups.sh\n@@ -20,7 +20,7 @@ update_repos() {\n }\n \n repo_fetched() {\n-\tif test \"`git log -1 --pretty=format:%s $1 --`\" = \"`cat mark`\"; then\n+\tif test \"$(git log -1 --pretty=format:%s $1 --)\" = \"$(cat mark)\"; then\n \t\techo >&2 \"repo was fetched: $1\"\n \t\treturn 0\n \tfi\n-- \n1.7.10.4\n"},{"id":"237592","messageId":"1395735989-3396-64-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 063/144] t5510-fetch.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:08Z","receivedAt":"2014-03-25T08:25:08Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5510-fetch.sh |   10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh\nindex ab28594..31b185e 100755\n--- a/t/t5510-fetch.sh\n+++ b/t/t5510-fetch.sh\n@@ -7,7 +7,7 @@ test_description='Per branch config variables affects \"git fetch\".\n \n . ./test-lib.sh\n \n-D=`pwd`\n+D=$(pwd)\n \n test_bundle_object_count () {\n \tgit verify-pack -v \"$1\" >verify.out &&\n@@ -64,8 +64,8 @@ test_expect_success \"fetch test\" '\n \tcd two &&\n \tgit fetch &&\n \ttest -f .git/refs/heads/one &&\n-\tmine=`git rev-parse refs/heads/one` &&\n-\this=`cd ../one && git rev-parse refs/heads/master` &&\n+\tmine=$(git rev-parse refs/heads/one) &&\n+\this=$(cd ../one && git rev-parse refs/heads/master) &&\n \ttest \"z$mine\" = \"z$his\"\n '\n \n@@ -75,8 +75,8 @@ test_expect_success \"fetch test for-merge\" '\n \tgit fetch &&\n \ttest -f .git/refs/heads/two &&\n \ttest -f .git/refs/heads/one &&\n-\tmaster_in_two=`cd ../two && git rev-parse master` &&\n-\tone_in_two=`cd ../two && git rev-parse one` &&\n+\tmaster_in_two=$(cd ../two && git rev-parse master) &&\n+\tone_in_two=$(cd ../two && git rev-parse one) &&\n \t{\n \t\techo \"$one_in_two\t\"\n \t\techo \"$master_in_two\tnot-for-merge\"\n-- \n1.7.10.4\n"},{"id":"237549","messageId":"1395735989-3396-65-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 064/144] t5515-fetch-merge-logic.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:09Z","receivedAt":"2014-03-25T08:25:09Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5515-fetch-merge-logic.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t5515-fetch-merge-logic.sh b/t/t5515-fetch-merge-logic.sh\nindex dbb927d..36b0dbc 100755\n--- a/t/t5515-fetch-merge-logic.sh\n+++ b/t/t5515-fetch-merge-logic.sh\n@@ -128,8 +128,8 @@ do\n \tcase \"$cmd\" in\n \t'' | '#'*) continue ;;\n \tesac\n-\ttest=`echo \"$cmd\" | sed -e 's|[/ ][/ ]*|_|g'`\n-\tpfx=`printf \"%04d\" $test_count`\n+\ttest=$(echo \"$cmd\" | sed -e 's|[/ ][/ ]*|_|g')\n+\tpfx=$(printf \"%04d\" $test_count)\n \texpect_f=\"$TEST_DIRECTORY/t5515/fetch.$test\"\n \tactual_f=\"$pfx-fetch.$test\"\n \texpect_r=\"$TEST_DIRECTORY/t5515/refs.$test\"\n-- \n1.7.10.4\n"},{"id":"237591","messageId":"1395735989-3396-66-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 065/144] t5516-fetch-push.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:10Z","receivedAt":"2014-03-25T08:25:10Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5516-fetch-push.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh\nindex 67e0ab3..a9ed84e 100755\n--- a/t/t5516-fetch-push.sh\n+++ b/t/t5516-fetch-push.sh\n@@ -15,7 +15,7 @@ This test checks the following functionality:\n \n . ./test-lib.sh\n \n-D=`pwd`\n+D=$(pwd)\n \n mk_empty () {\n \trepo_name=\"$1\"\n@@ -421,7 +421,7 @@ test_expect_success 'push tag with non-existent, incomplete dest' '\n test_expect_success 'push sha1 with non-existent, incomplete dest' '\n \n \tmk_test testrepo &&\n-\ttest_must_fail git push testrepo `git rev-parse master`:foo\n+\ttest_must_fail git push testrepo $(git rev-parse master):foo\n \n '\n \n-- \n1.7.10.4\n"},{"id":"237590","messageId":"1395735989-3396-67-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 066/144] t5517-push-mirror.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:11Z","receivedAt":"2014-03-25T08:25:11Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5517-push-mirror.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5517-push-mirror.sh b/t/t5517-push-mirror.sh\nindex 12a5dfb..02f160a 100755\n--- a/t/t5517-push-mirror.sh\n+++ b/t/t5517-push-mirror.sh\n@@ -4,7 +4,7 @@ test_description='pushing to a mirror repository'\n \n . ./test-lib.sh\n \n-D=`pwd`\n+D=$(pwd)\n \n invert () {\n \tif \"$@\"; then\n-- \n1.7.10.4\n"},{"id":"237587","messageId":"1395735989-3396-68-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 067/144] t5520-pull.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:12Z","receivedAt":"2014-03-25T08:25:12Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5520-pull.sh |   10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/t/t5520-pull.sh b/t/t5520-pull.sh\nindex 227d293..a68c099 100755\n--- a/t/t5520-pull.sh\n+++ b/t/t5520-pull.sh\n@@ -9,7 +9,7 @@ modify () {\n \tmv \"$2.x\" \"$2\"\n }\n \n-D=`pwd`\n+D=$(pwd)\n \n test_expect_success setup '\n \n@@ -94,9 +94,9 @@ test_expect_success 'test . as a remote' '\n \techo updated >file &&\n \tgit commit -a -m updated &&\n \tgit checkout copy &&\n-\ttest `cat file` = file &&\n+\ttest $(cat file) = file &&\n \tgit pull &&\n-\ttest `cat file` = updated\n+\ttest $(cat file) = updated\n '\n \n test_expect_success 'the default remote . should not break explicit pull' '\n@@ -105,9 +105,9 @@ test_expect_success 'the default remote . should not break explicit pull' '\n \tgit commit -a -m modified &&\n \tgit checkout copy &&\n \tgit reset --hard HEAD^ &&\n-\ttest `cat file` = file &&\n+\ttest $(cat file) = file &&\n \tgit pull . second &&\n-\ttest `cat file` = modified\n+\ttest $(cat file) = modified\n '\n \n test_expect_success '--rebase' '\n-- \n1.7.10.4\n"},{"id":"237588","messageId":"1395735989-3396-69-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 068/144] t5522-pull-symlink.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:13Z","receivedAt":"2014-03-25T08:25:13Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5522-pull-symlink.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5522-pull-symlink.sh b/t/t5522-pull-symlink.sh\nindex 8e9b204..bcff460 100755\n--- a/t/t5522-pull-symlink.sh\n+++ b/t/t5522-pull-symlink.sh\n@@ -54,7 +54,7 @@ test_expect_success SYMLINKS 'pulling from real subdir' '\n # git rev-parse --show-cdup printed a path relative to\n # clone-repo/subdir/, not subdir-link/.  Git rev-parse --show-cdup\n # used the correct .git, but when the git pull shell script did\n-# \"cd `git rev-parse --show-cdup`\", it ended up in the wrong\n+# \"cd $(git rev-parse --show-cdup)\", it ended up in the wrong\n # directory.  A POSIX shell's \"cd\" works a little differently\n # than chdir() in C; \"cd -P\" is much closer to chdir().\n #\n-- \n1.7.10.4\n"},{"id":"237550","messageId":"1395735989-3396-70-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 069/144] t5530-upload-pack-error.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:14Z","receivedAt":"2014-03-25T08:25:14Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5530-upload-pack-error.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5530-upload-pack-error.sh b/t/t5530-upload-pack-error.sh\nindex 3932e79..4f6e32b 100755\n--- a/t/t5530-upload-pack-error.sh\n+++ b/t/t5530-upload-pack-error.sh\n@@ -4,7 +4,7 @@ test_description='errors in upload-pack'\n \n . ./test-lib.sh\n \n-D=`pwd`\n+D=$(pwd)\n \n corrupt_repo () {\n \tobject_sha1=$(git rev-parse \"$1\") &&\n-- \n1.7.10.4\n"},{"id":"237581","messageId":"1395735989-3396-71-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 070/144] t5537-fetch-shallow.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:15Z","receivedAt":"2014-03-25T08:25:15Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5537-fetch-shallow.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t5537-fetch-shallow.sh b/t/t5537-fetch-shallow.sh\nindex be951a4..d9ea98a 100755\n--- a/t/t5537-fetch-shallow.sh\n+++ b/t/t5537-fetch-shallow.sh\n@@ -98,7 +98,7 @@ EOF\n test_expect_success 'fetch something upstream has but hidden by clients shallow boundaries' '\n \t# the blob \"1\" is available in .git but hidden by the\n \t# shallow2/.git/shallow and it should be resent\n-\t! git --git-dir=shallow2/.git cat-file blob `echo 1|git hash-object --stdin` >/dev/null &&\n+\t! git --git-dir=shallow2/.git cat-file blob $(echo 1|git hash-object --stdin) >/dev/null &&\n \techo 1 >1.t &&\n \tgit add 1.t &&\n \tgit commit -m add-1-back &&\n@@ -114,7 +114,7 @@ add-1-back\n EOF\n \ttest_cmp expect actual\n \t) &&\n-\tgit --git-dir=shallow2/.git cat-file blob `echo 1|git hash-object --stdin` >/dev/null\n+\tgit --git-dir=shallow2/.git cat-file blob $(echo 1|git hash-object --stdin) >/dev/null\n \n '\n \n-- \n1.7.10.4\n"},{"id":"237582","messageId":"1395735989-3396-72-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 071/144] t5538-push-shallow.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:16Z","receivedAt":"2014-03-25T08:25:16Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5538-push-shallow.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t5538-push-shallow.sh b/t/t5538-push-shallow.sh\nindex 8e54ac5..23a729a 100755\n--- a/t/t5538-push-shallow.sh\n+++ b/t/t5538-push-shallow.sh\n@@ -104,7 +104,7 @@ EOF\n '\n \n test_expect_success 'push from full to shallow' '\n-\t! git --git-dir=shallow2/.git cat-file blob `echo 1|git hash-object --stdin` &&\n+\t! git --git-dir=shallow2/.git cat-file blob $(echo 1|git hash-object --stdin) &&\n \tcommit 1 &&\n \tgit push shallow2/.git +master:refs/remotes/top/master &&\n \t(\n@@ -117,7 +117,7 @@ test_expect_success 'push from full to shallow' '\n 3\n EOF\n \ttest_cmp expect actual &&\n-\tgit cat-file blob `echo 1|git hash-object --stdin` >/dev/null\n+\tgit cat-file blob $(echo 1|git hash-object --stdin) >/dev/null\n \t)\n '\n \n-- \n1.7.10.4\n"},{"id":"237552","messageId":"1395735989-3396-73-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 072/144] t5550-http-fetch-dumb.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:17Z","receivedAt":"2014-03-25T08:25:17Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5550-http-fetch-dumb.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t5550-http-fetch-dumb.sh b/t/t5550-http-fetch-dumb.sh\nindex 1a3a2b6..5ccb271 100755\n--- a/t/t5550-http-fetch-dumb.sh\n+++ b/t/t5550-http-fetch-dumb.sh\n@@ -138,7 +138,7 @@ test_expect_success 'fetch packed objects' '\n test_expect_success 'fetch notices corrupt pack' '\n \tcp -R \"$HTTPD_DOCUMENT_ROOT_PATH\"/repo_pack.git \"$HTTPD_DOCUMENT_ROOT_PATH\"/repo_bad1.git &&\n \t(cd \"$HTTPD_DOCUMENT_ROOT_PATH\"/repo_bad1.git &&\n-\t p=`ls objects/pack/pack-*.pack` &&\n+\t p=$(ls objects/pack/pack-*.pack) &&\n \t chmod u+w $p &&\n \t printf %0256d 0 | dd of=$p bs=256 count=1 seek=1 conv=notrunc\n \t) &&\n@@ -146,14 +146,14 @@ test_expect_success 'fetch notices corrupt pack' '\n \t(cd repo_bad1.git &&\n \t git --bare init &&\n \t test_must_fail git --bare fetch $HTTPD_URL/dumb/repo_bad1.git &&\n-\t test 0 = `ls objects/pack/pack-*.pack | wc -l`\n+\t test 0 = $(ls objects/pack/pack-*.pack | wc -l)\n \t)\n '\n \n test_expect_success 'fetch notices corrupt idx' '\n \tcp -R \"$HTTPD_DOCUMENT_ROOT_PATH\"/repo_pack.git \"$HTTPD_DOCUMENT_ROOT_PATH\"/repo_bad2.git &&\n \t(cd \"$HTTPD_DOCUMENT_ROOT_PATH\"/repo_bad2.git &&\n-\t p=`ls objects/pack/pack-*.idx` &&\n+\t p=$(ls objects/pack/pack-*.idx) &&\n \t chmod u+w $p &&\n \t printf %0256d 0 | dd of=$p bs=256 count=1 seek=1 conv=notrunc\n \t) &&\n@@ -161,7 +161,7 @@ test_expect_success 'fetch notices corrupt idx' '\n \t(cd repo_bad2.git &&\n \t git --bare init &&\n \t test_must_fail git --bare fetch $HTTPD_URL/dumb/repo_bad2.git &&\n-\t test 0 = `ls objects/pack | wc -l`\n+\t test 0 = $(ls objects/pack | wc -l)\n \t)\n '\n \n-- \n1.7.10.4\n"},{"id":"237584","messageId":"1395735989-3396-74-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 073/144] t5551-http-fetch-smart.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:18Z","receivedAt":"2014-03-25T08:25:18Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5551-http-fetch-smart.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5551-http-fetch-smart.sh b/t/t5551-http-fetch-smart.sh\nindex e07eaf3..232c5ac 100755\n--- a/t/t5551-http-fetch-smart.sh\n+++ b/t/t5551-http-fetch-smart.sh\n@@ -218,7 +218,7 @@ test -n \"$GIT_TEST_LONG\" && test_set_prereq EXPENSIVE\n test_expect_success EXPENSIVE 'create 50,000 tags in the repo' '\n \t(\n \tcd \"$HTTPD_DOCUMENT_ROOT_PATH/repo.git\" &&\n-\tfor i in `test_seq 50000`\n+\tfor i in $(test_seq 50000)\n \tdo\n \t\techo \"commit refs/heads/too-many-refs\"\n \t\techo \"mark :$i\"\n-- \n1.7.10.4\n"},{"id":"237583","messageId":"1395735989-3396-75-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 074/144] t5570-git-daemon.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:19Z","receivedAt":"2014-03-25T08:25:19Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5570-git-daemon.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t5570-git-daemon.sh b/t/t5570-git-daemon.sh\nindex 6b16379..eb07dbe 100755\n--- a/t/t5570-git-daemon.sh\n+++ b/t/t5570-git-daemon.sh\n@@ -57,7 +57,7 @@ test_expect_success 'prepare pack objects' '\n test_expect_success 'fetch notices corrupt pack' '\n \tcp -R \"$GIT_DAEMON_DOCUMENT_ROOT_PATH\"/repo_pack.git \"$GIT_DAEMON_DOCUMENT_ROOT_PATH\"/repo_bad1.git &&\n \t(cd \"$GIT_DAEMON_DOCUMENT_ROOT_PATH\"/repo_bad1.git &&\n-\t p=`ls objects/pack/pack-*.pack` &&\n+\t p=$(ls objects/pack/pack-*.pack) &&\n \t chmod u+w $p &&\n \t printf %0256d 0 | dd of=$p bs=256 count=1 seek=1 conv=notrunc\n \t) &&\n@@ -65,14 +65,14 @@ test_expect_success 'fetch notices corrupt pack' '\n \t(cd repo_bad1.git &&\n \t git --bare init &&\n \t test_must_fail git --bare fetch \"$GIT_DAEMON_URL/repo_bad1.git\" &&\n-\t test 0 = `ls objects/pack/pack-*.pack | wc -l`\n+\t test 0 = $(ls objects/pack/pack-*.pack | wc -l)\n \t)\n '\n \n test_expect_success 'fetch notices corrupt idx' '\n \tcp -R \"$GIT_DAEMON_DOCUMENT_ROOT_PATH\"/repo_pack.git \"$GIT_DAEMON_DOCUMENT_ROOT_PATH\"/repo_bad2.git &&\n \t(cd \"$GIT_DAEMON_DOCUMENT_ROOT_PATH\"/repo_bad2.git &&\n-\t p=`ls objects/pack/pack-*.idx` &&\n+\t p=$(ls objects/pack/pack-*.idx) &&\n \t chmod u+w $p &&\n \t printf %0256d 0 | dd of=$p bs=256 count=1 seek=1 conv=notrunc\n \t) &&\n@@ -80,7 +80,7 @@ test_expect_success 'fetch notices corrupt idx' '\n \t(cd repo_bad2.git &&\n \t git --bare init &&\n \t test_must_fail git --bare fetch \"$GIT_DAEMON_URL/repo_bad2.git\" &&\n-\t test 0 = `ls objects/pack | wc -l`\n+\t test 0 = $(ls objects/pack | wc -l)\n \t)\n '\n \n-- \n1.7.10.4\n"},{"id":"237551","messageId":"1395735989-3396-76-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 075/144] t5601-clone.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:20Z","receivedAt":"2014-03-25T08:25:20Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5601-clone.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5601-clone.sh b/t/t5601-clone.sh\nindex 5e67035..fbe83a1 100755\n--- a/t/t5601-clone.sh\n+++ b/t/t5601-clone.sh\n@@ -221,7 +221,7 @@ test_expect_success 'clone separate gitdir' '\n '\n \n test_expect_success 'clone separate gitdir: output' '\n-\techo \"gitdir: `pwd`/realgitdir\" >expected &&\n+\techo \"gitdir: $(pwd)/realgitdir\" >expected &&\n \ttest_cmp expected dst/.git\n '\n \n-- \n1.7.10.4\n"},{"id":"237580","messageId":"1395735989-3396-77-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 076/144] t5700-clone-reference.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:21Z","receivedAt":"2014-03-25T08:25:21Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5700-clone-reference.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5700-clone-reference.sh b/t/t5700-clone-reference.sh\nindex 6537911..571aee4 100755\n--- a/t/t5700-clone-reference.sh\n+++ b/t/t5700-clone-reference.sh\n@@ -6,7 +6,7 @@\n test_description='test clone --reference'\n . ./test-lib.sh\n \n-base_dir=`pwd`\n+base_dir=$(pwd)\n \n U=$base_dir/UPLOAD_LOG\n \n-- \n1.7.10.4\n"},{"id":"237585","messageId":"1395735989-3396-78-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 077/144] t5710-info-alternate.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:22Z","receivedAt":"2014-03-25T08:25:22Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5710-info-alternate.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5710-info-alternate.sh b/t/t5710-info-alternate.sh\nindex 5a6e49d..9cd2626 100755\n--- a/t/t5710-info-alternate.sh\n+++ b/t/t5710-info-alternate.sh\n@@ -21,7 +21,7 @@ test_valid_repo() {\n \ttest_line_count = 0 fsck.log\n }\n \n-base_dir=`pwd`\n+base_dir=$(pwd)\n \n test_expect_success 'preparing first repository' \\\n 'test_create_repo A && cd A &&\n-- \n1.7.10.4\n"},{"id":"237586","messageId":"1395735989-3396-79-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 078/144] t5900-repo-selection.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:23Z","receivedAt":"2014-03-25T08:25:23Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t5900-repo-selection.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t5900-repo-selection.sh b/t/t5900-repo-selection.sh\nindex 3d5b418..14e59c5 100755\n--- a/t/t5900-repo-selection.sh\n+++ b/t/t5900-repo-selection.sh\n@@ -15,7 +15,7 @@ make_tree() {\n make_bare() {\n \tgit init --bare \"$1\" &&\n \t(cd \"$1\" &&\n-\t tree=`git hash-object -w -t tree /dev/null` &&\n+\t tree=$(git hash-object -w -t tree /dev/null) &&\n \t commit=$(echo \"$1\" | git commit-tree $tree) &&\n \t git update-ref HEAD $commit\n \t)\n-- \n1.7.10.4\n"},{"id":"237553","messageId":"1395735989-3396-80-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 079/144] t6001-rev-list-graft.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:24Z","receivedAt":"2014-03-25T08:25:24Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6001-rev-list-graft.sh |   12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)\n\ndiff --git a/t/t6001-rev-list-graft.sh b/t/t6001-rev-list-graft.sh\nindex 8efcd13..05ddc69 100755\n--- a/t/t6001-rev-list-graft.sh\n+++ b/t/t6001-rev-list-graft.sh\n@@ -10,15 +10,15 @@ test_expect_success setup '\n \techo >subdir/fileB fileB &&\n \tgit add fileA subdir/fileB &&\n \tgit commit -a -m \"Initial in one history.\" &&\n-\tA0=`git rev-parse --verify HEAD` &&\n+\tA0=$(git rev-parse --verify HEAD) &&\n \n \techo >fileA fileA modified &&\n \tgit commit -a -m \"Second in one history.\" &&\n-\tA1=`git rev-parse --verify HEAD` &&\n+\tA1=$(git rev-parse --verify HEAD) &&\n \n \techo >subdir/fileB fileB modified &&\n \tgit commit -a -m \"Third in one history.\" &&\n-\tA2=`git rev-parse --verify HEAD` &&\n+\tA2=$(git rev-parse --verify HEAD) &&\n \n \trm -f .git/refs/heads/master .git/index &&\n \n@@ -26,15 +26,15 @@ test_expect_success setup '\n \techo >subdir/fileB fileB again &&\n \tgit add fileA subdir/fileB &&\n \tgit commit -a -m \"Initial in alternate history.\" &&\n-\tB0=`git rev-parse --verify HEAD` &&\n+\tB0=$(git rev-parse --verify HEAD) &&\n \n \techo >fileA fileA modified in alternate history &&\n \tgit commit -a -m \"Second in alternate history.\" &&\n-\tB1=`git rev-parse --verify HEAD` &&\n+\tB1=$(git rev-parse --verify HEAD) &&\n \n \techo >subdir/fileB fileB modified in alternate history &&\n \tgit commit -a -m \"Third in alternate history.\" &&\n-\tB2=`git rev-parse --verify HEAD` &&\n+\tB2=$(git rev-parse --verify HEAD) &&\n \t: done\n '\n \n-- \n1.7.10.4\n"},{"id":"237578","messageId":"1395735989-3396-81-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 080/144] t6002-rev-list-bisect.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:25Z","receivedAt":"2014-03-25T08:25:25Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6002-rev-list-bisect.sh |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh\nindex 43ad772..3bf2759 100755\n--- a/t/t6002-rev-list-bisect.sh\n+++ b/t/t6002-rev-list-bisect.sh\n@@ -27,9 +27,9 @@ test_bisection_diff()\n \t# Test if bisection size is close to half of list size within\n \t# tolerance.\n \t#\n-\t_bisect_err=`expr $_list_size - $_bisection_size \\* 2`\n-\ttest \"$_bisect_err\" -lt 0 && _bisect_err=`expr 0 - $_bisect_err`\n-\t_bisect_err=`expr $_bisect_err / 2` ; # floor\n+\t_bisect_err=$(expr $_list_size - $_bisection_size \\* 2)\n+\ttest \"$_bisect_err\" -lt 0 && _bisect_err=$(expr 0 - $_bisect_err)\n+\t_bisect_err=$(expr $_bisect_err / 2) ; # floor\n \n \ttest_expect_success \\\n \t\"bisection diff $_bisect_option $_head $* <= $_max_diff\" \\\n-- \n1.7.10.4\n"},{"id":"237579","messageId":"1395735989-3396-82-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 081/144] t6015-rev-list-show-all-parents.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:26Z","receivedAt":"2014-03-25T08:25:26Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6015-rev-list-show-all-parents.sh |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/t/t6015-rev-list-show-all-parents.sh b/t/t6015-rev-list-show-all-parents.sh\nindex 8b146fb..3c73c93 100755\n--- a/t/t6015-rev-list-show-all-parents.sh\n+++ b/t/t6015-rev-list-show-all-parents.sh\n@@ -6,11 +6,11 @@ test_description='--show-all --parents does not rewrite TREESAME commits'\n \n test_expect_success 'set up --show-all --parents test' '\n \ttest_commit one foo.txt &&\n-\tcommit1=`git rev-list -1 HEAD` &&\n+\tcommit1=$(git rev-list -1 HEAD) &&\n \ttest_commit two bar.txt &&\n-\tcommit2=`git rev-list -1 HEAD` &&\n+\tcommit2=$(git rev-list -1 HEAD) &&\n \ttest_commit three foo.txt &&\n-\tcommit3=`git rev-list -1 HEAD`\n+\tcommit3=$(git rev-list -1 HEAD)\n \t'\n \n test_expect_success '--parents rewrites TREESAME parents correctly' '\n-- \n1.7.10.4\n"},{"id":"237577","messageId":"1395735989-3396-83-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 082/144] t6032-merge-large-rename.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:27Z","receivedAt":"2014-03-25T08:25:27Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6032-merge-large-rename.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t6032-merge-large-rename.sh b/t/t6032-merge-large-rename.sh\nindex 15beecc..36019df 100755\n--- a/t/t6032-merge-large-rename.sh\n+++ b/t/t6032-merge-large-rename.sh\n@@ -20,7 +20,7 @@ test_expect_success 'setup (initial)' '\n \n make_text() {\n \techo $1: $2\n-\tfor i in `count 20`; do\n+\tfor i in $(count 20); do\n \t\techo $1: $i\n \tdone\n \techo $1: $3\n-- \n1.7.10.4\n"},{"id":"237576","messageId":"1395735989-3396-84-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 083/144] t6034-merge-rename-nocruft.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:28Z","receivedAt":"2014-03-25T08:25:28Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6034-merge-rename-nocruft.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t6034-merge-rename-nocruft.sh b/t/t6034-merge-rename-nocruft.sh\nindex 65be95f..34f17be 100755\n--- a/t/t6034-merge-rename-nocruft.sh\n+++ b/t/t6034-merge-rename-nocruft.sh\n@@ -117,7 +117,7 @@ test_expect_success 'merge blue into white (A->B, mod A, A untracked)' \\\n \t\techo \"BAD: A does not exist in working directory\"\n \t\treturn 1\n \t}\n-\ttest `cat A` = dirty || {\n+\ttest $(cat A) = dirty || {\n \t\techo \"BAD: A content is wrong\"\n \t\treturn 1\n \t}\n-- \n1.7.10.4\n"},{"id":"237554","messageId":"1395735989-3396-85-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 084/144] t6111-rev-list-treesame.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:29Z","receivedAt":"2014-03-25T08:25:29Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6111-rev-list-treesame.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t6111-rev-list-treesame.sh b/t/t6111-rev-list-treesame.sh\nindex 88b84df..3971c31 100755\n--- a/t/t6111-rev-list-treesame.sh\n+++ b/t/t6111-rev-list-treesame.sh\n@@ -4,7 +4,7 @@\n #       /        \\ /             \\*\n # *A--*B---D--*F-*G---------K-*L-*M\n #   \\     /*       \\       /\n-#    `-C-'          `-*I-*J\n+#    $(-C-'          )-*I-*J\n #\n # A creates \"file\", B and F change it.\n # Odd merge G takes the old version from B.\n-- \n1.7.10.4\n"},{"id":"237573","messageId":"1395735989-3396-86-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 085/144] t6132-pathspec-exclude.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:30Z","receivedAt":"2014-03-25T08:25:30Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t6132-pathspec-exclude.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t6132-pathspec-exclude.sh b/t/t6132-pathspec-exclude.sh\nindex 62049be..801afae 100755\n--- a/t/t6132-pathspec-exclude.sh\n+++ b/t/t6132-pathspec-exclude.sh\n@@ -7,7 +7,7 @@ test_description='test case exclude pathspec'\n test_expect_success 'setup' '\n \tfor p in file sub/file sub/sub/file sub/file2 sub/sub/sub/file sub2/file; do\n \t\tif echo $p | grep /; then\n-\t\t\tmkdir -p `dirname $p`\n+\t\t\tmkdir -p $(dirname $p)\n \t\tfi &&\n \t\t: >$p &&\n \t\tgit add $p &&\n-- \n1.7.10.4\n"},{"id":"237571","messageId":"1395735989-3396-87-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 086/144] t7001-mv.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:31Z","receivedAt":"2014-03-25T08:25:31Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7001-mv.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t7001-mv.sh b/t/t7001-mv.sh\nindex e3c8c2c..23564bf 100755\n--- a/t/t7001-mv.sh\n+++ b/t/t7001-mv.sh\n@@ -156,11 +156,11 @@ test_expect_success \"Michael Cassar's test case\" '\n \techo b > partA/outline.txt &&\n \techo c > papers/unsorted/_another &&\n \tgit add papers partA &&\n-\tT1=`git write-tree` &&\n+\tT1=$(git write-tree) &&\n \n \tgit mv papers/unsorted/Thesis.pdf papers/all-papers/moo-blah.pdf &&\n \n-\tT=`git write-tree` &&\n+\tT=$(git write-tree) &&\n \tgit ls-tree -r $T | grep partA/outline.txt || {\n \t\tgit ls-tree -r $T\n \t\t(exit 1)\n-- \n1.7.10.4\n"},{"id":"237575","messageId":"1395735989-3396-88-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 087/144] t7003-filter-branch.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:32Z","receivedAt":"2014-03-25T08:25:32Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7003-filter-branch.sh |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh\nindex 9496736..87459a5 100755\n--- a/t/t7003-filter-branch.sh\n+++ b/t/t7003-filter-branch.sh\n@@ -362,7 +362,7 @@ test_expect_success 'setup submodule' '\n \tgit branch original HEAD\n '\n \n-orig_head=`git show-ref --hash --head HEAD`\n+orig_head=$(git show-ref --hash --head HEAD)\n \n test_expect_success 'rewrite submodule with another content' '\n \tgit filter-branch --tree-filter \"test -d submod && {\n@@ -371,7 +371,7 @@ test_expect_success 'rewrite submodule with another content' '\n \t\t\t\t\t mkdir submod &&\n \t\t\t\t\t : > submod/file\n \t\t\t\t\t } || :\" HEAD &&\n-\ttest $orig_head != `git show-ref --hash --head HEAD`\n+\ttest $orig_head != $(git show-ref --hash --head HEAD)\n '\n \n test_expect_success 'replace submodule revision' '\n@@ -380,7 +380,7 @@ test_expect_success 'replace submodule revision' '\n \t    \"if git ls-files --error-unmatch -- submod > /dev/null 2>&1\n \t     then git update-index --cacheinfo 160000 0123456789012345678901234567890123456789 submod\n \t     fi\" HEAD &&\n-\ttest $orig_head != `git show-ref --hash --head HEAD`\n+\ttest $orig_head != $(git show-ref --hash --head HEAD)\n '\n \n test_done\n-- \n1.7.10.4\n"},{"id":"237574","messageId":"1395735989-3396-89-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 088/144] t7004-tag.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:33Z","receivedAt":"2014-03-25T08:25:33Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7004-tag.sh |   16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/t/t7004-tag.sh b/t/t7004-tag.sh\nindex 143a8ea..2ed8fc0 100755\n--- a/t/t7004-tag.sh\n+++ b/t/t7004-tag.sh\n@@ -23,8 +23,8 @@ test_expect_success 'listing all tags in an empty tree should succeed' '\n '\n \n test_expect_success 'listing all tags in an empty tree should output nothing' '\n-\ttest `git tag -l | wc -l` -eq 0 &&\n-\ttest `git tag | wc -l` -eq 0\n+\ttest $(git tag -l | wc -l) -eq 0 &&\n+\ttest $(git tag | wc -l) -eq 0\n '\n \n test_expect_success 'looking for a tag in an empty tree should fail' \\\n@@ -60,8 +60,8 @@ test_expect_success 'listing all tags if one exists should succeed' '\n '\n \n test_expect_success 'listing all tags if one exists should output that tag' '\n-\ttest `git tag -l` = mytag &&\n-\ttest `git tag` = mytag\n+\ttest $(git tag -l) = mytag &&\n+\ttest $(git tag) = mytag\n '\n \n # pattern matching:\n@@ -71,7 +71,7 @@ test_expect_success 'listing a tag using a matching pattern should succeed' \\\n \n test_expect_success \\\n \t'listing a tag using a matching pattern should output that tag' \\\n-\t'test `git tag -l mytag` = mytag'\n+\t'test $(git tag -l mytag) = mytag'\n \n # todo: git tag -l now returns always zero, when fixed, change this test\n test_expect_success \\\n@@ -80,7 +80,7 @@ test_expect_success \\\n \n test_expect_success \\\n \t'listing tags using a non-matching pattern should output nothing' \\\n-\t'test `git tag -l xxx | wc -l` -eq 0'\n+\t'test $(git tag -l xxx | wc -l) -eq 0'\n \n # special cases for creating tags:\n \n@@ -90,13 +90,13 @@ test_expect_success \\\n \n test_expect_success \\\n \t'trying to create a tag with a non-valid name should fail' '\n-\ttest `git tag -l | wc -l` -eq 1 &&\n+\ttest $(git tag -l | wc -l) -eq 1 &&\n \ttest_must_fail git tag \"\" &&\n \ttest_must_fail git tag .othertag &&\n \ttest_must_fail git tag \"other tag\" &&\n \ttest_must_fail git tag \"othertag^\" &&\n \ttest_must_fail git tag \"other~tag\" &&\n-\ttest `git tag -l | wc -l` -eq 1\n+\ttest $(git tag -l | wc -l) -eq 1\n '\n \n test_expect_success 'creating a tag using HEAD directly should succeed' '\n-- \n1.7.10.4\n"},{"id":"237572","messageId":"1395735989-3396-90-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 089/144] t7006-pager.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:34Z","receivedAt":"2014-03-25T08:25:34Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7006-pager.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t7006-pager.sh b/t/t7006-pager.sh\nindex b9365b4..7576fa9 100755\n--- a/t/t7006-pager.sh\n+++ b/t/t7006-pager.sh\n@@ -436,7 +436,7 @@ test_expect_success TTY 'command-specific pager works for external commands' '\n \techo \"foo:initial\" >expect &&\n \t>actual &&\n \ttest_config pager.external \"sed s/^/foo:/ >actual\" &&\n-\ttest_terminal git --exec-path=\"`pwd`\" external log --format=%s -1 &&\n+\ttest_terminal git --exec-path=\"$(pwd)\" external log --format=%s -1 &&\n \ttest_cmp expect actual\n '\n \n-- \n1.7.10.4\n"},{"id":"237557","messageId":"1395735989-3396-91-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 090/144] t7103-reset-bare.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:35Z","receivedAt":"2014-03-25T08:25:35Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7103-reset-bare.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t7103-reset-bare.sh b/t/t7103-reset-bare.sh\nindex 1eef93c..afe36a5 100755\n--- a/t/t7103-reset-bare.sh\n+++ b/t/t7103-reset-bare.sh\n@@ -63,7 +63,7 @@ test_expect_success '\"mixed\" reset is not allowed in bare' '\n \n test_expect_success '\"soft\" reset is allowed in bare' '\n \tgit reset --soft HEAD^ &&\n-\ttest \"`git show --pretty=format:%s | head -n 1`\" = \"one\"\n+\ttest \"$(git show --pretty=format:%s | head -n 1)\" = \"one\"\n '\n \n test_done\n-- \n1.7.10.4\n"},{"id":"237569","messageId":"1395735989-3396-92-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 091/144] t7406-submodule-update.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:36Z","receivedAt":"2014-03-25T08:25:36Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7406-submodule-update.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh\nindex 28ca763..294a4a6 100755\n--- a/t/t7406-submodule-update.sh\n+++ b/t/t7406-submodule-update.sh\n@@ -14,8 +14,8 @@ submodule and \"git submodule update --rebase/--merge\" does not detach the HEAD.\n \n compare_head()\n {\n-    sha_master=`git rev-list --max-count=1 master`\n-    sha_head=`git rev-list --max-count=1 HEAD`\n+    sha_master=$(git rev-list --max-count=1 master)\n+    sha_head=$(git rev-list --max-count=1 HEAD)\n \n     test \"$sha_master\" = \"$sha_head\"\n }\n-- \n1.7.10.4\n"},{"id":"237570","messageId":"1395735989-3396-93-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 092/144] t7408-submodule-reference.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:37Z","receivedAt":"2014-03-25T08:25:37Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7408-submodule-reference.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t7408-submodule-reference.sh b/t/t7408-submodule-reference.sh\nindex b770b2f..eaea19b 100755\n--- a/t/t7408-submodule-reference.sh\n+++ b/t/t7408-submodule-reference.sh\n@@ -6,7 +6,7 @@\n test_description='test clone --reference'\n . ./test-lib.sh\n \n-base_dir=`pwd`\n+base_dir=$(pwd)\n \n U=$base_dir/UPLOAD_LOG\n \n-- \n1.7.10.4\n"},{"id":"237555","messageId":"1395735989-3396-94-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 093/144] t7504-commit-msg-hook.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:38Z","receivedAt":"2014-03-25T08:25:38Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7504-commit-msg-hook.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t7504-commit-msg-hook.sh b/t/t7504-commit-msg-hook.sh\nindex 1f53ea8..8728db6 100755\n--- a/t/t7504-commit-msg-hook.sh\n+++ b/t/t7504-commit-msg-hook.sh\n@@ -179,7 +179,7 @@ EOF\n chmod +x \"$HOOK\"\n \n commit_msg_is () {\n-\ttest \"`git log --pretty=format:%s%b -1`\" = \"$1\"\n+\ttest \"$(git log --pretty=format:%s%b -1)\" = \"$1\"\n }\n \n test_expect_success 'hook edits commit message' '\n-- \n1.7.10.4\n"},{"id":"237568","messageId":"1395735989-3396-95-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 094/144] t7505-prepare-commit-msg-hook.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:39Z","receivedAt":"2014-03-25T08:25:39Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7505-prepare-commit-msg-hook.sh |   32 ++++++++++++++++----------------\n 1 file changed, 16 insertions(+), 16 deletions(-)\n\ndiff --git a/t/t7505-prepare-commit-msg-hook.sh b/t/t7505-prepare-commit-msg-hook.sh\nindex 3573751..e3baf16 100755\n--- a/t/t7505-prepare-commit-msg-hook.sh\n+++ b/t/t7505-prepare-commit-msg-hook.sh\n@@ -53,7 +53,7 @@ test_expect_success 'with hook (-m)' '\n \techo \"more\" >> file &&\n \tgit add file &&\n \tgit commit -m \"more\" &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = \"message (no editor)\"\n+\ttest \"$(git log -1 --pretty=format:%s)\" = \"message (no editor)\"\n \n '\n \n@@ -62,7 +62,7 @@ test_expect_success 'with hook (-m editor)' '\n \techo \"more\" >> file &&\n \tgit add file &&\n \tGIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit -e -m \"more more\" &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = message\n+\ttest \"$(git log -1 --pretty=format:%s)\" = message\n \n '\n \n@@ -71,7 +71,7 @@ test_expect_success 'with hook (-t)' '\n \techo \"more\" >> file &&\n \tgit add file &&\n \tgit commit -t \"$(git rev-parse --git-dir)/template\" &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = template\n+\ttest \"$(git log -1 --pretty=format:%s)\" = template\n \n '\n \n@@ -80,7 +80,7 @@ test_expect_success 'with hook (-F)' '\n \techo \"more\" >> file &&\n \tgit add file &&\n \t(echo more | git commit -F -) &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = \"message (no editor)\"\n+\ttest \"$(git log -1 --pretty=format:%s)\" = \"message (no editor)\"\n \n '\n \n@@ -89,17 +89,17 @@ test_expect_success 'with hook (-F editor)' '\n \techo \"more\" >> file &&\n \tgit add file &&\n \t(echo more more | GIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit -e -F -) &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = message\n+\ttest \"$(git log -1 --pretty=format:%s)\" = message\n \n '\n \n test_expect_success 'with hook (-C)' '\n \n-\thead=`git rev-parse HEAD` &&\n+\thead=$(git rev-parse HEAD) &&\n \techo \"more\" >> file &&\n \tgit add file &&\n \tgit commit -C $head &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = \"$head (no editor)\"\n+\ttest \"$(git log -1 --pretty=format:%s)\" = \"$head (no editor)\"\n \n '\n \n@@ -108,40 +108,40 @@ test_expect_success 'with hook (editor)' '\n \techo \"more more\" >> file &&\n \tgit add file &&\n \tGIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = default\n+\ttest \"$(git log -1 --pretty=format:%s)\" = default\n \n '\n \n test_expect_success 'with hook (--amend)' '\n \n-\thead=`git rev-parse HEAD` &&\n+\thead=$(git rev-parse HEAD) &&\n \techo \"more\" >> file &&\n \tgit add file &&\n \tGIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit --amend &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = \"$head\"\n+\ttest \"$(git log -1 --pretty=format:%s)\" = \"$head\"\n \n '\n \n test_expect_success 'with hook (-c)' '\n \n-\thead=`git rev-parse HEAD` &&\n+\thead=$(git rev-parse HEAD) &&\n \techo \"more\" >> file &&\n \tgit add file &&\n \tGIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit -c $head &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = \"$head\"\n+\ttest \"$(git log -1 --pretty=format:%s)\" = \"$head\"\n \n '\n \n test_expect_success 'with hook (merge)' '\n \n-\thead=`git rev-parse HEAD` &&\n+\thead=$(git rev-parse HEAD) &&\n \tgit checkout -b other HEAD@{1} &&\n \techo \"more\" >> file &&\n \tgit add file &&\n \tgit commit -m other &&\n \tgit checkout - &&\n \tgit merge other &&\n-\ttest \"`git log -1 --pretty=format:%s`\" = merge\n+\ttest \"$(git log -1 --pretty=format:%s)\" = merge\n '\n \n cat > \"$HOOK\" <<'EOF'\n@@ -151,7 +151,7 @@ EOF\n \n test_expect_success 'with failing hook' '\n \n-\thead=`git rev-parse HEAD` &&\n+\thead=$(git rev-parse HEAD) &&\n \techo \"more\" >> file &&\n \tgit add file &&\n \t! GIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit -c $head\n@@ -160,7 +160,7 @@ test_expect_success 'with failing hook' '\n \n test_expect_success 'with failing hook (--no-verify)' '\n \n-\thead=`git rev-parse HEAD` &&\n+\thead=$(git rev-parse HEAD) &&\n \techo \"more\" >> file &&\n \tgit add file &&\n \t! GIT_EDITOR=\"\\\"\\$FAKE_EDITOR\\\"\" git commit --no-verify -c $head\n-- \n1.7.10.4\n"},{"id":"237556","messageId":"1395735989-3396-96-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 095/144] t7602-merge-octopus-many.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:40Z","receivedAt":"2014-03-25T08:25:40Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7602-merge-octopus-many.sh |    8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t7602-merge-octopus-many.sh b/t/t7602-merge-octopus-many.sh\nindex 955f09f..6abe441 100755\n--- a/t/t7602-merge-octopus-many.sh\n+++ b/t/t7602-merge-octopus-many.sh\n@@ -19,7 +19,7 @@ test_expect_success 'setup' '\n \t\tgit add c$i.c &&\n \t\tgit commit -m c$i &&\n \t\tgit tag c$i &&\n-\t\ti=`expr $i + 1` || return 1\n+\t\ti=$(expr $i + 1) || return 1\n \tdone\n '\n \n@@ -30,7 +30,7 @@ test_expect_success 'merge c1 with c2, c3, c4, ... c29' '\n \twhile test $i -le 30\n \tdo\n \t\trefs=\"$refs c$i\"\n-\t\ti=`expr $i + 1`\n+\t\ti=$(expr $i + 1)\n \tdone &&\n \tgit merge $refs &&\n \ttest \"$(git rev-parse c1)\" != \"$(git rev-parse HEAD)\" &&\n@@ -38,14 +38,14 @@ test_expect_success 'merge c1 with c2, c3, c4, ... c29' '\n \twhile test $i -le 30\n \tdo\n \t\ttest \"$(git rev-parse c$i)\" = \"$(git rev-parse HEAD^$i)\" &&\n-\t\ti=`expr $i + 1` || return 1\n+\t\ti=$(expr $i + 1) || return 1\n \tdone &&\n \tgit diff --exit-code &&\n \ti=1 &&\n \twhile test $i -le 30\n \tdo\n \t\ttest -f c$i.c &&\n-\t\ti=`expr $i + 1` || return 1\n+\t\ti=$(expr $i + 1) || return 1\n \tdone\n '\n \n-- \n1.7.10.4\n"},{"id":"237567","messageId":"1395735989-3396-97-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 096/144] t7700-repack.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:41Z","receivedAt":"2014-03-25T08:25:41Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t7700-repack.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t7700-repack.sh b/t/t7700-repack.sh\nindex 284018e..ced4417 100755\n--- a/t/t7700-repack.sh\n+++ b/t/t7700-repack.sh\n@@ -53,7 +53,7 @@ test_expect_success 'writing bitmaps can duplicate .keep objects' '\n \n test_expect_success 'loose objects in alternate ODB are not repacked' '\n \tmkdir alt_objects &&\n-\techo `pwd`/alt_objects > .git/objects/info/alternates &&\n+\techo $(pwd)/alt_objects > .git/objects/info/alternates &&\n \techo content3 > file3 &&\n \tobjsha1=$(GIT_OBJECT_DIRECTORY=alt_objects git hash-object -w file3) &&\n \tgit add file3 &&\n@@ -152,7 +152,7 @@ test_expect_success 'packed unreachable obs in alternate ODB are not loosened' '\n '\n \n test_expect_success 'local packed unreachable obs that exist in alternate ODB are not loosened' '\n-\techo `pwd`/alt_objects > .git/objects/info/alternates &&\n+\techo $(pwd)/alt_objects > .git/objects/info/alternates &&\n \techo \"$csha1\" | git pack-objects --non-empty --all --reflog pack &&\n \trm -f .git/objects/pack/* &&\n \tmv pack-* .git/objects/pack/ &&\n-- \n1.7.10.4\n"},{"id":"237558","messageId":"1395735989-3396-98-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 097/144] t8003-blame-corner-cases.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:42Z","receivedAt":"2014-03-25T08:25:42Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t8003-blame-corner-cases.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t8003-blame-corner-cases.sh b/t/t8003-blame-corner-cases.sh\nindex e7cac1d..4216d08 100755\n--- a/t/t8003-blame-corner-cases.sh\n+++ b/t/t8003-blame-corner-cases.sh\n@@ -153,7 +153,7 @@ test_expect_success 'blame path that used to be a directory' '\n '\n \n test_expect_success 'blame to a commit with no author name' '\n-  TREE=`git rev-parse HEAD:`\n+  TREE=$(git rev-parse HEAD:)\n   cat >badcommit <<EOF\n tree $TREE\n author <noname> 1234567890 +0000\n@@ -161,7 +161,7 @@ committer David Reiss <dreiss@facebook.com> 1234567890 +0000\n \n some message\n EOF\n-  COMMIT=`git hash-object -t commit -w badcommit`\n+  COMMIT=$(git hash-object -t commit -w badcommit)\n   git --no-pager blame $COMMIT -- uno >/dev/null\n '\n \n-- \n1.7.10.4\n"},{"id":"237565","messageId":"1395735989-3396-99-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 098/144] t9001-send-email.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:43Z","receivedAt":"2014-03-25T08:25:43Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9001-send-email.sh |   10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh\nindex 1ecdacb..149a5b1 100755\n--- a/t/t9001-send-email.sh\n+++ b/t/t9001-send-email.sh\n@@ -34,7 +34,7 @@ clean_fake_sendmail() {\n }\n \n test_expect_success $PREREQ 'Extract patches' '\n-    patches=`git format-patch -s --cc=\"One <one@example.com>\" --cc=two@example.com -n HEAD^1`\n+    patches=$(git format-patch -s --cc=\"One <one@example.com>\" --cc=two@example.com -n HEAD^1)\n '\n \n # Test no confirm early to ensure remaining tests will not hang\n@@ -1158,7 +1158,7 @@ test_expect_success $PREREQ '--no-bcc overrides sendemail.bcc' '\n '\n \n test_expect_success $PREREQ 'patches To headers are used by default' '\n-\tpatch=`git format-patch -1 --to=\"bodies@example.com\"` &&\n+\tpatch=$(git format-patch -1 --to=\"bodies@example.com\") &&\n \ttest_when_finished \"rm $patch\" &&\n \tgit send-email \\\n \t\t--dry-run \\\n@@ -1169,7 +1169,7 @@ test_expect_success $PREREQ 'patches To headers are used by default' '\n '\n \n test_expect_success $PREREQ 'patches To headers are appended to' '\n-\tpatch=`git format-patch -1 --to=\"bodies@example.com\"` &&\n+\tpatch=$(git format-patch -1 --to=\"bodies@example.com\") &&\n \ttest_when_finished \"rm $patch\" &&\n \tgit send-email \\\n \t\t--dry-run \\\n@@ -1182,8 +1182,8 @@ test_expect_success $PREREQ 'patches To headers are appended to' '\n '\n \n test_expect_success $PREREQ 'To headers from files reset each patch' '\n-\tpatch1=`git format-patch -1 --to=\"bodies@example.com\"` &&\n-\tpatch2=`git format-patch -1 --to=\"other@example.com\" HEAD~` &&\n+\tpatch1=$(git format-patch -1 --to=\"bodies@example.com\") &&\n+\tpatch2=$(git format-patch -1 --to=\"other@example.com\" HEAD~) &&\n \ttest_when_finished \"rm $patch1 && rm $patch2\" &&\n \tgit send-email \\\n \t\t--dry-run \\\n-- \n1.7.10.4\n"},{"id":"237559","messageId":"1395735989-3396-100-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 099/144] t9101-git-svn-props.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:44Z","receivedAt":"2014-03-25T08:25:44Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9101-git-svn-props.sh |   30 +++++++++++++++---------------\n 1 file changed, 15 insertions(+), 15 deletions(-)\n\ndiff --git a/t/t9101-git-svn-props.sh b/t/t9101-git-svn-props.sh\nindex 8869f50..e8173d5 100755\n--- a/t/t9101-git-svn-props.sh\n+++ b/t/t9101-git-svn-props.sh\n@@ -26,27 +26,27 @@ cd import\n EOF\n \n \tprintf \"Hello\\r\\nWorld\\r\\n\" > crlf\n-\ta_crlf=`git hash-object -w crlf`\n+\ta_crlf=$(git hash-object -w crlf)\n \tprintf \"Hello\\rWorld\\r\" > cr\n-\ta_cr=`git hash-object -w cr`\n+\ta_cr=$(git hash-object -w cr)\n \tprintf \"Hello\\nWorld\\n\" > lf\n-\ta_lf=`git hash-object -w lf`\n+\ta_lf=$(git hash-object -w lf)\n \n \tprintf \"Hello\\r\\nWorld\" > ne_crlf\n-\ta_ne_crlf=`git hash-object -w ne_crlf`\n+\ta_ne_crlf=$(git hash-object -w ne_crlf)\n \tprintf \"Hello\\nWorld\" > ne_lf\n-\ta_ne_lf=`git hash-object -w ne_lf`\n+\ta_ne_lf=$(git hash-object -w ne_lf)\n \tprintf \"Hello\\rWorld\" > ne_cr\n-\ta_ne_cr=`git hash-object -w ne_cr`\n+\ta_ne_cr=$(git hash-object -w ne_cr)\n \n \ttouch empty\n-\ta_empty=`git hash-object -w empty`\n+\ta_empty=$(git hash-object -w empty)\n \tprintf \"\\n\" > empty_lf\n-\ta_empty_lf=`git hash-object -w empty_lf`\n+\ta_empty_lf=$(git hash-object -w empty_lf)\n \tprintf \"\\r\" > empty_cr\n-\ta_empty_cr=`git hash-object -w empty_cr`\n+\ta_empty_cr=$(git hash-object -w empty_cr)\n \tprintf \"\\r\\n\" > empty_crlf\n-\ta_empty_crlf=`git hash-object -w empty_crlf`\n+\ta_empty_crlf=$(git hash-object -w empty_crlf)\n \n \tsvn_cmd import --no-auto-props -m 'import for git svn' . \"$svnrepo\" >/dev/null\n cd ..\n@@ -80,7 +80,7 @@ test_expect_success \"$name\" \\\n \tgit pull . ${remotes_git_svn}'\n \n expect='/* $Id$ */'\n-got=\"`sed -ne 2p kw.c`\"\n+got=\"$(sed -ne 2p kw.c)\"\n test_expect_success 'raw $Id$ found in kw.c' \"test '$expect' = '$got'\"\n \n test_expect_success \"propset CR on crlf files\" '\n@@ -107,8 +107,8 @@ done\n cd test_wc\n \tprintf '$Id$\\rHello\\rWorld\\r' > cr\n \tprintf '$Id$\\rHello\\rWorld' > ne_cr\n-\ta_cr=`printf '$Id$\\r\\nHello\\r\\nWorld\\r\\n' | git hash-object --stdin`\n-\ta_ne_cr=`printf '$Id$\\r\\nHello\\r\\nWorld' | git hash-object --stdin`\n+\ta_cr=$(printf '$Id$\\r\\nHello\\r\\nWorld\\r\\n' | git hash-object --stdin)\n+\ta_ne_cr=$(printf '$Id$\\r\\nHello\\r\\nWorld' | git hash-object --stdin)\n \ttest_expect_success 'Set CRLF on cr files' \\\n \t'svn_cmd propset svn:eol-style CRLF cr &&\n \t svn_cmd propset svn:eol-style CRLF ne_cr &&\n@@ -119,8 +119,8 @@ cd ..\n test_expect_success 'fetch and pull latest from svn' \\\n \t'git svn fetch && git pull . ${remotes_git_svn}'\n \n-b_cr=\"`git hash-object cr`\"\n-b_ne_cr=\"`git hash-object ne_cr`\"\n+b_cr=\"$(git hash-object cr)\"\n+b_ne_cr=\"$(git hash-object ne_cr)\"\n \n test_expect_success 'CRLF + $Id$' \"test '$a_cr' = '$b_cr'\"\n test_expect_success 'CRLF + $Id$ (no newline)' \"test '$a_ne_cr' = '$b_ne_cr'\"\n-- \n1.7.10.4\n"},{"id":"237564","messageId":"1395735989-3396-101-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 100/144] t9104-git-svn-follow-parent.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:45Z","receivedAt":"2014-03-25T08:25:45Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9104-git-svn-follow-parent.sh |   48 +++++++++++++++++++-------------------\n 1 file changed, 24 insertions(+), 24 deletions(-)\n\ndiff --git a/t/t9104-git-svn-follow-parent.sh b/t/t9104-git-svn-follow-parent.sh\nindex 13b179e..101f545 100755\n--- a/t/t9104-git-svn-follow-parent.sh\n+++ b/t/t9104-git-svn-follow-parent.sh\n@@ -31,8 +31,8 @@ test_expect_success 'initialize repo' '\n test_expect_success 'init and fetch a moved directory' '\n \tgit svn init --minimize-url -i thunk \"$svnrepo\"/thunk &&\n \tgit svn fetch -i thunk &&\n-\ttest \"`git rev-parse --verify refs/remotes/thunk@2`\" \\\n-           = \"`git rev-parse --verify refs/remotes/thunk~1`\" &&\n+\ttest \"$(git rev-parse --verify refs/remotes/thunk@2)\" \\\n+           = \"$(git rev-parse --verify refs/remotes/thunk~1)\" &&\n         test \"`git cat-file blob refs/remotes/thunk:readme |\\\n                  sed -n -e \"3p\"`\" = goodbye &&\n \ttest -z \"`git config --get svn-remote.svn.fetch \\\n@@ -46,8 +46,8 @@ test_expect_success 'init and fetch from one svn-remote' '\n         git config --add svn-remote.svn.fetch \\\n           thunk:refs/remotes/svn/thunk &&\n         git svn fetch -i svn/thunk &&\n-\ttest \"`git rev-parse --verify refs/remotes/svn/trunk`\" \\\n-           = \"`git rev-parse --verify refs/remotes/svn/thunk~1`\" &&\n+\ttest \"$(git rev-parse --verify refs/remotes/svn/trunk)\" \\\n+           = \"$(git rev-parse --verify refs/remotes/svn/thunk~1)\" &&\n         test \"`git cat-file blob refs/remotes/svn/thunk:readme |\\\n                  sed -n -e \"3p\"`\" = goodbye\n         '\n@@ -61,9 +61,9 @@ test_expect_success 'follow deleted parent' '\n           junk:refs/remotes/svn/junk &&\n         git svn fetch -i svn/thunk &&\n         git svn fetch -i svn/junk &&\n-        test -z \"`git diff svn/junk svn/trunk`\" &&\n-        test \"`git merge-base svn/junk svn/trunk`\" \\\n-           = \"`git rev-parse svn/trunk`\"\n+        test -z \"$(git diff svn/junk svn/trunk)\" &&\n+        test \"$(git merge-base svn/junk svn/trunk)\" \\\n+           = \"$(git rev-parse svn/trunk)\"\n         '\n \n test_expect_success 'follow larger parent' '\n@@ -80,7 +80,7 @@ test_expect_success 'follow larger parent' '\n         test \"`git merge-base \\\n                  refs/remotes/larger-parent/trunk/thunk/bump/thud \\\n                  refs/remotes/larger`\" = \\\n-             \"`git rev-parse refs/remotes/larger`\"\n+             \"$(git rev-parse refs/remotes/larger)\"\n         true\n         '\n \n@@ -104,8 +104,8 @@ test_expect_success 'follow deleted directory' '\n \tsvn_cmd rm -m \"remove glob\" \"$svnrepo\"/glob &&\n \tgit svn init --minimize-url -i glob \"$svnrepo\"/glob &&\n \tgit svn fetch -i glob &&\n-\ttest \"`git cat-file blob refs/remotes/glob:blob/bye`\" = hi &&\n-\ttest \"`git ls-tree refs/remotes/glob | wc -l `\" -eq 1\n+\ttest \"$(git cat-file blob refs/remotes/glob:blob/bye)\" = hi &&\n+\ttest \"$(git ls-tree refs/remotes/glob | wc -l )\" -eq 1\n \t'\n \n # ref: r9270 of the Subversion repository: (http://svn.collab.net/repos/svn)\n@@ -140,9 +140,9 @@ test_expect_success 'follow-parent avoids deleting relevant info' '\n \tgit svn init --minimize-url -i r9270-t \\\n \t  \"$svnrepo\"/r9270/trunk/subversion/bindings/swig/perl/native/t &&\n \tgit svn fetch -i r9270-t &&\n-\ttest `git rev-list r9270-t | wc -l` -eq 2 &&\n-\ttest \"`git ls-tree --name-only r9270-t~1`\" = \\\n-\t     \"`git ls-tree --name-only r9270-t`\"\n+\ttest $(git rev-list r9270-t | wc -l) -eq 2 &&\n+\ttest \"$(git ls-tree --name-only r9270-t~1)\" = \\\n+\t     \"$(git ls-tree --name-only r9270-t)\"\n \t'\n \n test_expect_success \"track initial change if it was only made to parent\" '\n@@ -150,11 +150,11 @@ test_expect_success \"track initial change if it was only made to parent\" '\n \tgit svn init --minimize-url -i r9270-d \\\n \t  \"$svnrepo\"/r9270/drunk/subversion/bindings/swig/perl/native/t &&\n \tgit svn fetch -i r9270-d &&\n-\ttest `git rev-list r9270-d | wc -l` -eq 3 &&\n-\ttest \"`git ls-tree --name-only r9270-t`\" = \\\n-\t     \"`git ls-tree --name-only r9270-d`\" &&\n-\ttest \"`git rev-parse r9270-t`\" = \\\n-\t     \"`git rev-parse r9270-d~1`\"\n+\ttest $(git rev-list r9270-d | wc -l) -eq 3 &&\n+\ttest \"$(git ls-tree --name-only r9270-t)\" = \\\n+\t     \"$(git ls-tree --name-only r9270-d)\" &&\n+\ttest \"$(git rev-parse r9270-t)\" = \\\n+\t     \"$(git rev-parse r9270-d~1)\"\n \t'\n \n test_expect_success \"follow-parent is atomic\" '\n@@ -191,12 +191,12 @@ test_expect_success \"follow-parent is atomic\" '\n \tgit svn fetch -i stunk &&\n \tgit svn init --minimize-url -i flunked \"$svnrepo\"/flunked &&\n \tgit svn fetch -i flunked &&\n-\ttest \"`git rev-parse --verify refs/remotes/flunk@18`\" \\\n-\t   = \"`git rev-parse --verify refs/remotes/stunk`\" &&\n-\ttest \"`git rev-parse --verify refs/remotes/flunk~1`\" \\\n-\t   = \"`git rev-parse --verify refs/remotes/stunk`\" &&\n-\ttest \"`git rev-parse --verify refs/remotes/flunked~1`\" \\\n-\t   = \"`git rev-parse --verify refs/remotes/stunk~1`\"\n+\ttest \"$(git rev-parse --verify refs/remotes/flunk@18)\" \\\n+\t   = \"$(git rev-parse --verify refs/remotes/stunk)\" &&\n+\ttest \"$(git rev-parse --verify refs/remotes/flunk~1)\" \\\n+\t   = \"$(git rev-parse --verify refs/remotes/stunk)\" &&\n+\ttest \"$(git rev-parse --verify refs/remotes/flunked~1)\" \\\n+\t   = \"$(git rev-parse --verify refs/remotes/stunk~1)\"\n \t'\n \n test_expect_success \"track multi-parent paths\" '\n-- \n1.7.10.4\n"},{"id":"237566","messageId":"1395735989-3396-102-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 101/144] t9105-git-svn-commit-diff.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:46Z","receivedAt":"2014-03-25T08:25:46Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9105-git-svn-commit-diff.sh |    4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t9105-git-svn-commit-diff.sh b/t/t9105-git-svn-commit-diff.sh\nindex 5d0afea..6ed5f74 100755\n--- a/t/t9105-git-svn-commit-diff.sh\n+++ b/t/t9105-git-svn-commit-diff.sh\n@@ -18,8 +18,8 @@ test_expect_success 'initialize repo' '\n \tgit commit -a -m \"another\"\n \t'\n \n-head=`git rev-parse --verify HEAD^0`\n-prev=`git rev-parse --verify HEAD^1`\n+head=$(git rev-parse --verify HEAD^0)\n+prev=$(git rev-parse --verify HEAD^1)\n \n # the internals of the commit-diff command are the same as the regular\n # commit, so only a basic test of functionality is needed since we've\n-- \n1.7.10.4\n"},{"id":"237560","messageId":"1395735989-3396-103-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 102/144] t9107-git-svn-migrate.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:47Z","receivedAt":"2014-03-25T08:25:47Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9107-git-svn-migrate.sh |   16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)\n\ndiff --git a/t/t9107-git-svn-migrate.sh b/t/t9107-git-svn-migrate.sh\nindex ee73013..8cb9c2b 100755\n--- a/t/t9107-git-svn-migrate.sh\n+++ b/t/t9107-git-svn-migrate.sh\n@@ -24,10 +24,10 @@ test_expect_success 'setup old-looking metadata' '\n \tgit update-ref -d refs/${remotes_git_svn} refs/${remotes_git_svn}\n \t'\n \n-head=`git rev-parse --verify refs/heads/git-svn-HEAD^0`\n+head=$(git rev-parse --verify refs/heads/git-svn-HEAD^0)\n test_expect_success 'git-svn-HEAD is a real HEAD' \"test -n '$head'\"\n \n-svnrepo_escaped=`echo $svnrepo | sed 's/ /%20/'`\n+svnrepo_escaped=$(echo $svnrepo | sed 's/ /%20/')\n \n test_expect_success 'initialize old-style (v0) git svn layout' '\n \tmkdir -p \"$GIT_DIR\"/git-svn/info \"$GIT_DIR\"/svn/info &&\n@@ -38,7 +38,7 @@ test_expect_success 'initialize old-style (v0) git svn layout' '\n \tgit rev-parse --verify refs/${remotes_git_svn}^0 &&\n \tgit rev-parse --verify refs/remotes/svn^0 &&\n \ttest \"$(git config --get svn-remote.svn.url)\" = \"$svnrepo_escaped\" &&\n-\ttest `git config --get svn-remote.svn.fetch` = \\\n+\ttest $(git config --get svn-remote.svn.fetch) = \\\n              \":refs/${remotes_git_svn}\"\n \t'\n \n@@ -75,7 +75,7 @@ test_expect_success 'multi-fetch works on partial urls + paths' \"\n \tfor i in trunk a b tags/0.1 tags/0.2 tags/0.3; do\n \t\tgit rev-parse --verify refs/remotes/\\$i^0 >> refs.out || exit 1;\n \t    done &&\n-\ttest -z \\\"\\`sort < refs.out | uniq -d\\`\\\" &&\n+\ttest -z \\\"\\$(sort < refs.out | uniq -d\\)\\\" &&\n \tfor i in trunk a b tags/0.1 tags/0.2 tags/0.3; do\n \t  for j in trunk a b tags/0.1 tags/0.2 tags/0.3; do\n \t\tif test \\$j != \\$i; then continue; fi\n@@ -87,16 +87,16 @@ test_expect_success 'migrate --minimize on old inited layout' '\n \tgit config --unset-all svn-remote.svn.fetch &&\n \tgit config --unset-all svn-remote.svn.url &&\n \trm -rf \"$GIT_DIR\"/svn &&\n-\tfor i in `cat fetch.out`; do\n-\t\tpath=`expr $i : \"\\([^:]*\\):.*$\"`\n-\t\tref=`expr $i : \"[^:]*:\\(refs/remotes/.*\\)$\"`\n+\tfor i in $(cat fetch.out); do\n+\t\tpath=$(expr $i : \"\\([^:]*\\):.*$\")\n+\t\tref=$(expr $i : \"[^:]*:\\(refs/remotes/.*\\)$\")\n \t\tif test -z \"$ref\"; then continue; fi\n \t\tif test -n \"$path\"; then path=\"/$path\"; fi\n \t\t( mkdir -p \"$GIT_DIR\"/svn/$ref/info/ &&\n \t\techo \"$svnrepo\"$path > \"$GIT_DIR\"/svn/$ref/info/url ) || exit 1;\n \tdone &&\n \tgit svn migrate --minimize &&\n-\ttest -z \"`git config -l | grep \"^svn-remote\\.git-svn\\.\"`\" &&\n+\ttest -z \"$(git config -l | grep \"^svn-remote\\.git-svn\\.\")\" &&\n \tgit config --get-all svn-remote.svn.fetch > fetch.out &&\n \tgrep \"^trunk:refs/remotes/trunk$\" fetch.out &&\n \tgrep \"^branches/a:refs/remotes/a$\" fetch.out &&\n-- \n1.7.10.4\n"},{"id":"237563","messageId":"1395735989-3396-104-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 103/144] t9108-git-svn-glob.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:48Z","receivedAt":"2014-03-25T08:25:48Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9108-git-svn-glob.sh |   20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)\n\ndiff --git a/t/t9108-git-svn-glob.sh b/t/t9108-git-svn-glob.sh\nindex d732d31..a526d60 100755\n--- a/t/t9108-git-svn-glob.sh\n+++ b/t/t9108-git-svn-glob.sh\n@@ -50,10 +50,10 @@ test_expect_success 'test refspec globbing' '\n \tgit log --pretty=oneline refs/remotes/tags/end | \\\n \t    sed -e \"s/^.\\{41\\}//\" > output.end &&\n \ttest_cmp expect.end output.end &&\n-\ttest \"`git rev-parse refs/remotes/tags/end~1`\" = \\\n-\t\t\"`git rev-parse refs/remotes/branches/start`\" &&\n-\ttest \"`git rev-parse refs/remotes/branches/start~2`\" = \\\n-\t\t\"`git rev-parse refs/remotes/trunk`\" &&\n+\ttest \"$(git rev-parse refs/remotes/tags/end~1)\" = \\\n+\t\t\"$(git rev-parse refs/remotes/branches/start)\" &&\n+\ttest \"$(git rev-parse refs/remotes/branches/start~2)\" = \\\n+\t\t\"$(git rev-parse refs/remotes/trunk)\" &&\n \ttest_must_fail git rev-parse refs/remotes/tags/end@3\n \t'\n \n@@ -75,12 +75,12 @@ test_expect_success 'test left-hand-side only globbing' '\n \t\tsvn_cmd commit -m \"try to try\"\n \t) &&\n \tgit svn fetch two &&\n-\ttest `git rev-list refs/remotes/two/tags/end | wc -l` -eq 6 &&\n-\ttest `git rev-list refs/remotes/two/branches/start | wc -l` -eq 3 &&\n-\ttest `git rev-parse refs/remotes/two/branches/start~2` = \\\n-\t     `git rev-parse refs/remotes/two/trunk` &&\n-\ttest `git rev-parse refs/remotes/two/tags/end~3` = \\\n-\t     `git rev-parse refs/remotes/two/branches/start` &&\n+\ttest $(git rev-list refs/remotes/two/tags/end | wc -l) -eq 6 &&\n+\ttest $(git rev-list refs/remotes/two/branches/start | wc -l) -eq 3 &&\n+\ttest $(git rev-parse refs/remotes/two/branches/start~2) = \\\n+\t     $(git rev-parse refs/remotes/two/trunk) &&\n+\ttest $(git rev-parse refs/remotes/two/tags/end~3) = \\\n+\t     $(git rev-parse refs/remotes/two/branches/start) &&\n \tgit log --pretty=oneline refs/remotes/two/tags/end | \\\n \t    sed -e \"s/^.\\{41\\}//\" > output.two &&\n \ttest_cmp expect.two output.two\n-- \n1.7.10.4\n"},{"id":"237561","messageId":"1395735989-3396-105-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 104/144] t9109-git-svn-multi-glob.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:49Z","receivedAt":"2014-03-25T08:25:49Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9109-git-svn-multi-glob.sh |   32 ++++++++++++++++----------------\n 1 file changed, 16 insertions(+), 16 deletions(-)\n\ndiff --git a/t/t9109-git-svn-multi-glob.sh b/t/t9109-git-svn-multi-glob.sh\nindex c318f9f..f36b749 100755\n--- a/t/t9109-git-svn-multi-glob.sh\n+++ b/t/t9109-git-svn-multi-glob.sh\n@@ -50,10 +50,10 @@ test_expect_success 'test refspec globbing' '\n \tgit log --pretty=oneline refs/remotes/tags/end | \\\n \t    sed -e \"s/^.\\{41\\}//\" > output.end &&\n \ttest_cmp expect.end output.end &&\n-\ttest \"`git rev-parse refs/remotes/tags/end~1`\" = \\\n-\t\t\"`git rev-parse refs/remotes/branches/v1/start`\" &&\n-\ttest \"`git rev-parse refs/remotes/branches/v1/start~2`\" = \\\n-\t\t\"`git rev-parse refs/remotes/trunk`\" &&\n+\ttest \"$(git rev-parse refs/remotes/tags/end~1)\" = \\\n+\t\t\"$(git rev-parse refs/remotes/branches/v1/start)\" &&\n+\ttest \"$(git rev-parse refs/remotes/branches/v1/start~2)\" = \\\n+\t\t\"$(git rev-parse refs/remotes/trunk)\" &&\n \ttest_must_fail git rev-parse refs/remotes/tags/end@3\n \t'\n \n@@ -75,12 +75,12 @@ test_expect_success 'test left-hand-side only globbing' '\n \t\tsvn_cmd commit -m \"try to try\"\n \t) &&\n \tgit svn fetch two &&\n-\ttest `git rev-list refs/remotes/two/tags/end | wc -l` -eq 6 &&\n-\ttest `git rev-list refs/remotes/two/branches/v1/start | wc -l` -eq 3 &&\n-\ttest `git rev-parse refs/remotes/two/branches/v1/start~2` = \\\n-\t     `git rev-parse refs/remotes/two/trunk` &&\n-\ttest `git rev-parse refs/remotes/two/tags/end~3` = \\\n-\t     `git rev-parse refs/remotes/two/branches/v1/start` &&\n+\ttest $(git rev-list refs/remotes/two/tags/end | wc -l) -eq 6 &&\n+\ttest $(git rev-list refs/remotes/two/branches/v1/start | wc -l) -eq 3 &&\n+\ttest $(git rev-parse refs/remotes/two/branches/v1/start~2) = \\\n+\t     $(git rev-parse refs/remotes/two/trunk) &&\n+\ttest $(git rev-parse refs/remotes/two/tags/end~3) = \\\n+\t     $(git rev-parse refs/remotes/two/branches/v1/start) &&\n \tgit log --pretty=oneline refs/remotes/two/tags/end | \\\n \t    sed -e \"s/^.\\{41\\}//\" > output.two &&\n \ttest_cmp expect.two output.two\n@@ -124,12 +124,12 @@ test_expect_success 'test another branch' '\n \tgit config --add svn-remote.four.tags \\\n \t                 \"tags/*:refs/remotes/four/tags/*\" &&\n \tgit svn fetch four &&\n-\ttest `git rev-list refs/remotes/four/tags/next | wc -l` -eq 5 &&\n-\ttest `git rev-list refs/remotes/four/branches/v2/start | wc -l` -eq 3 &&\n-\ttest `git rev-parse refs/remotes/four/branches/v2/start~2` = \\\n-\t     `git rev-parse refs/remotes/four/trunk` &&\n-\ttest `git rev-parse refs/remotes/four/tags/next~2` = \\\n-\t     `git rev-parse refs/remotes/four/branches/v2/start` &&\n+\ttest $(git rev-list refs/remotes/four/tags/next | wc -l) -eq 5 &&\n+\ttest $(git rev-list refs/remotes/four/branches/v2/start | wc -l) -eq 3 &&\n+\ttest $(git rev-parse refs/remotes/four/branches/v2/start~2) = \\\n+\t     $(git rev-parse refs/remotes/four/trunk) &&\n+\ttest $(git rev-parse refs/remotes/four/tags/next~2) = \\\n+\t     $(git rev-parse refs/remotes/four/branches/v2/start) &&\n \tgit log --pretty=oneline refs/remotes/four/tags/next | \\\n \t    sed -e \"s/^.\\{41\\}//\" > output.four &&\n \ttest_cmp expect.four output.four\n-- \n1.7.10.4\n"},{"id":"237562","messageId":"1395735989-3396-106-git-send-email-gitter.spiros@gmail.com","threadId":"36288","inReplyTo":"1395735989-3396-1-git-send-email-gitter.spiros@gmail.com","subject":"[PATCH 105/144] t9110-git-svn-use-svm-props.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T08:25:50Z","receivedAt":"2014-03-25T08:25:50Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"The Git CodingGuidelines prefer the $( ... ) construct for command\nsubstitution instead of using the back-quotes, or grave accents (`..`).\n\nThe backquoted form is the historical method for command substitution,\nand is supported by POSIX. However,all but the simplest uses become\ncomplicated quickly. In particular,embedded command substitutions\nand/or the use of double quotes require careful escaping with the backslash\ncharacter. Because of this the POSIX shell adopted the $(…) feature from\nthe Korn shell.\n\nSigned-off-by: Elia Pinto <gitter.spiros@gmail.com>\n---\n t/t9110-git-svn-use-svm-props.sh |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t9110-git-svn-use-svm-props.sh b/t/t9110-git-svn-use-svm-props.sh\nindex a06e4c5..29fbdfd 100755\n--- a/t/t9110-git-svn-use-svm-props.sh\n+++ b/t/t9110-git-svn-use-svm-props.sh\n@@ -51,7 +51,7 @@ test_expect_success 'verify metadata for /dir' \"\n \n test_expect_success 'find commit based on SVN revision number' \"\n         git svn find-rev r12 |\n-\t    grep `git rev-parse HEAD`\n+\t    grep $(git rev-parse HEAD)\n         \"\n \n test_expect_success 'empty rebase' \"\n-- \n1.7.10.4\n"},{"id":"237612","messageId":"vpqa9ce7k1x.fsf@anie.imag.fr","threadId":"36288","inReplyTo":"1395735989-3396-2-git-send-email-gitter.spiros@gmail.com","subject":"Re: [PATCH 001/144] check-builtins.sh: use the $( ... ) construct for command substitution","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2014-03-25T08:35:06Z","receivedAt":"2014-03-25T08:35:06Z","isPatch":true,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Elia Pinto <gitter.spiros@gmail.com> writes:\n\n> and is supported by POSIX. However,all but the simplest uses become\n\nMissing space after comma.\n\n> complicated quickly. In particular,embedded command substitutions\n\nDitto.\n\n(neither should block merging, but they would be worth fixing if you\nneed a reroll)\n\nDid you do these 144 patches by hand, or did you use a script (e.g. perl\nsubstitution or so) to do it? If the later, then you should include\nexplanations in your commit message.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"293728","messageId":"vpq4n2m7jz7.fsf@anie.imag.fr","threadId":"36288","inReplyTo":"1395735989-3396-16-git-send-email-gitter.spiros@gmail.com","subject":"Re: [PATCH 015/144] t0204-gettext-reencode-sanity.sh: use the $( ... ) construct for command substitution","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2014-03-25T08:36:44Z","receivedAt":"2014-03-25T08:36:44Z","isPatch":true,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Elia Pinto <gitter.spiros@gmail.com> writes:\n\n> --- a/t/t0204-gettext-reencode-sanity.sh\n> +++ b/t/t0204-gettext-reencode-sanity.sh\n> @@ -58,7 +58,7 @@ test_expect_success GETTEXT_LOCALE 'gettext: Fetching a UTF-8 msgid -> UTF-8' '\n>  # How these quotes get transliterated depends on the gettext implementation:\n>  #\n>  #   Debian:  ,einfaldar' og ,,tvöfaldar\" [GNU libintl]\n> -#   FreeBSD: `einfaldar` og \"tvöfaldar\"  [GNU libintl]\n> +#   FreeBSD: $(einfaldar) og \"tvöfaldar\"  [GNU libintl]\n>  #   Solaris: ?einfaldar? og ?tvöfaldar?  [Solaris libintl]\n\nI don't think you wanted this to be changed.\n\n-- \nMatthieu Moy\n"},{"id":"237638","messageId":"vpqob0u3bj6.fsf@anie.imag.fr","threadId":"36288","inReplyTo":"1395735989-3396-85-git-send-email-gitter.spiros@gmail.com","subject":"Re: [PATCH 084/144] t6111-rev-list-treesame.sh: use the $( ... ) construct for command substitution","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2014-03-25T08:52:45Z","receivedAt":"2014-03-25T08:52:45Z","isPatch":true,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Elia Pinto <gitter.spiros@gmail.com> writes:\n\n> --- a/t/t6111-rev-list-treesame.sh\n> +++ b/t/t6111-rev-list-treesame.sh\n> @@ -4,7 +4,7 @@\n>  #       /        \\ /             \\*\n>  # *A--*B---D--*F-*G---------K-*L-*M\n>  #   \\     /*       \\       /\n> -#    `-C-'          `-*I-*J\n> +#    $(-C-'          )-*I-*J\n\nThe original version was more readable ;-).\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"237644","messageId":"CA+EOSBk0p3ZXafAMWKjvqcOYDHR3ZSFvxFJ1ixqKuouPPqZ9pg@mail.gmail.com","threadId":"36288","inReplyTo":"vpq4n2m7jz7.fsf@anie.imag.fr","subject":"Re: [PATCH 015/144] t0204-gettext-reencode-sanity.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T09:51:36Z","receivedAt":"2014-03-25T09:51:36Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"2014-03-25 9:36 GMT+01:00 Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>:\n> Elia Pinto <gitter.spiros@gmail.com> writes:\n>\n>> --- a/t/t0204-gettext-reencode-sanity.sh\n>> +++ b/t/t0204-gettext-reencode-sanity.sh\n>> @@ -58,7 +58,7 @@ test_expect_success GETTEXT_LOCALE 'gettext: Fetching a UTF-8 msgid -> UTF-8' '\n>>  # How these quotes get transliterated depends on the gettext implementation:\n>>  #\n>>  #   Debian:  ,einfaldar' og ,,tvöfaldar\" [GNU libintl]\n>> -#   FreeBSD: `einfaldar` og \"tvöfaldar\"  [GNU libintl]\n>> +#   FreeBSD: $(einfaldar) og \"tvöfaldar\"  [GNU libintl]\n>>  #   Solaris: ?einfaldar? og ?tvöfaldar?  [Solaris libintl]\n>\n> I don't think you wanted this to be changed.\n\nCertainly not. The change was made by an automated script, can happen\nthat i missed something.\n\nPlease skip this patch.\n\nThank you very much for the review.\n\n\nElia\n>\n> --\n> Matthieu Moy\n> http://www-verimag.imag.fr/~moy/\n"},{"id":"237645","messageId":"CA+EOSBka3T-UvoY0ntOeEZbMM0Djnv0hOV4gRNTBAPf38qM4=Q@mail.gmail.com","threadId":"36288","inReplyTo":"vpqob0u3bj6.fsf@anie.imag.fr","subject":"Re: [PATCH 084/144] t6111-rev-list-treesame.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T09:52:31Z","receivedAt":"2014-03-25T09:52:31Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"2014-03-25 9:52 GMT+01:00 Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>:\n> Elia Pinto <gitter.spiros@gmail.com> writes:\n>\n>> --- a/t/t6111-rev-list-treesame.sh\n>> +++ b/t/t6111-rev-list-treesame.sh\n>> @@ -4,7 +4,7 @@\n>>  #       /        \\ /             \\*\n>>  # *A--*B---D--*F-*G---------K-*L-*M\n>>  #   \\     /*       \\       /\n>> -#    `-C-'          `-*I-*J\n>> +#    $(-C-'          )-*I-*J\n>\n> The original version was more readable ;-).\n\n:=)\n\nI am sorry. The change was made by an automated script, can happen\nthat i missed something.\n\nPlease skip this patch.\n\nThank you very much for the review.\n\n\nElia\n>\n>\n> --\n> Matthieu Moy\n> http://www-verimag.imag.fr/~moy/\n"},{"id":"237646","messageId":"CA+EOSBnzcBA433-HwmnRh4Xefh54NLg8e+bYhx5K8j9j5RvmSQ@mail.gmail.com","threadId":"36288","inReplyTo":"vpqa9ce7k1x.fsf@anie.imag.fr","subject":"Re: [PATCH 001/144] check-builtins.sh: use the $( ... ) construct for command substitution","fromName":"Elia Pinto","fromEmail":"gitter.spiros@gmail.com","sentAt":"2014-03-25T10:03:42Z","receivedAt":"2014-03-25T10:03:42Z","isPatch":true,"sender":{"key":"gitter.spiros@gmail.com","avatar":"https://avatars.githubusercontent.com/u/158490?v=4"},"body":"2014-03-25 9:35 GMT+01:00 Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>:\n> Elia Pinto <gitter.spiros@gmail.com> writes:\n>\n>> and is supported by POSIX. However,all but the simplest uses become\n>\n> Missing space after comma.\n>\n>> complicated quickly. In particular,embedded command substitutions\n>\n> Ditto.\n>\n> (neither should block merging, but they would be worth fixing if you\n> need a reroll)\n>\n> Did you do these 144 patches by hand, or did you use a script (e.g. perl\n> substitution or so) to do it? If the later, then you should include\n> explanations in your commit message.\n\nI had used a toy sed script. No bulletproof.  Then I did a manual review.\n\nI review the patch series, adjust the comment was added, and resend the V2.\n\nThanks again\n>\n> --\n> Matthieu Moy\n> http://www-verimag.imag.fr/~moy/\n"},{"id":"238068","messageId":"20140329235047.GA20815@dcvr.yhbt.net","threadId":"36288","inReplyTo":"1395735989-3396-100-git-send-email-gitter.spiros@gmail.com","subject":"Re: [PATCH 099/144] t9101-git-svn-props.sh: use the $( ... ) construct for command substitution","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2014-03-29T23:50:47Z","receivedAt":"2014-03-29T23:50:47Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Elia Pinto <gitter.spiros@gmail.com> wrote:\n> The Git CodingGuidelines prefer the $( ... ) construct for command\n> substitution instead of using the back-quotes, or grave accents (`..`).\n\nI did not check very closely, but for the git-svn tests:\nAcked-by: Eric Wong <normalperson@yhbt.net>\nThanks.\n"}]}