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

[PATCH 0/3] Improve POSIX compatibility and general portablity

From
Paul Campbell <pcampbell@kemitix.net>
Date
Mar 24, 2013, 19:37 UTC
Message-ID
<1364153863-27437-1-git-send-email-pcampbell@kemitix.net>

git-subtree is considered to be a Bash only script and not POSIX compatibile.

I removed the /bin/bash and tested with dash. All the tests passed.

I also followed some of the advice found in https://wiki.ubuntu.com/DashAsBinSh for converting a bash script to be more portable.

Paul Campbell (3):
  contrib/subtree: stop explicitly using a bash shell
  contrib/subtree: remove use of -a/-o in [ commands
  contrib/subtree: replace echo options with printf
 contrib/subtree/git-subtree.sh | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)
-- 
1.8.2
Next: Paul Campbell
Message 1 of 6 in “Improve POSIX compatibility and general portablity”
  1. 0/3 Improve POSIX compatibility and general portablityPaul Campbell, Mar 24, 2013
  2. 1/3 contrib/subtree: stop explicitly using a bash shellPaul Campbell, Mar 24, 2013
  3. Junio C HamanoMar 25, 2013
  4. 2/3 contrib/subtree: remove use of -a/-o in [ commandsPaul Campbell, Mar 24, 2013
  5. Simon RuderichMar 24, 2013
  6. 3/3 contrib/subtree: replace echo options with printfPaul Campbell, Mar 24, 2013

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.