git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Remove bashism from t3210-pack-refs.sh

From
DSDennis Stosberg <dennis@stosberg.net>
Date
Oct 6, 2006, 09:10 UTC
Message-ID
<20061006091054.15209.35068.stgit@leonov.stosberg.net>
This bashism makes the test fail if /bin/sh is not bash.
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
---
 t/t3210-pack-refs.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh
index f31e79c..ca5bd49 100755
--- a/t/t3210-pack-refs.sh
+++ b/t/t3210-pack-refs.sh
@@ -23,7 +23,7 @@ SHA1=
 test_expect_success \
     'see if git show-ref works as expected' \
     'git-branch a &&
-     SHA1=$(< .git/refs/heads/a) &&
+     SHA1=`cat .git/refs/heads/a` &&
      echo "$SHA1 refs/heads/a" >expect &&
      git-show-ref a >result &&
      diff expect result'
Next: Alex Riesen
Message 1 of 4 in “Remove bashism from t3210-pack-refs.sh”
  1. Remove bashism from t3210-pack-refs.shDennis Stosberg, Oct 6, 2006
  2. Alex RiesenOct 6, 2006
  3. Jakub NarebskiOct 6, 2006
  4. Linus TorvaldsOct 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.