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

bug: git-sh-setup should not be in $PATH

From
Han-Wen Nienhuys <hanwen@xs4all.nl>
Date
Dec 6, 2006, 12:14 UTC
Message-ID
<el6c6o$oa7$1@sea.gmane.org>
Hello,

I often install tools locally so I can run SVN/CVS/etc versions in my own account. To do this, I install into

  $HOME/usr/pkg/PACKAGE

and a script that generates scripts in $HOME/usr/bin/ (which is in my $PATH) like

 #!/bin/sh
 exec /home/lilydev/usr/pkg/git/bin/git-prune "$@"
 # generated: update-pkgs 

this breaks with git-sh-setup; all sh scripts are broken with this setup.

git-sh-setup isn't a 'normal' binary, in that it should be called by bash only and not run in a subshell. Therefore I propose that it

- be installed in <prefix>/share/git/
- be invoked with an explicit path, i.e.
  . <prefix>/share/git/
--
 Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
Next: Johannes Schindelin
Message 1 of 17 in “bug: git-sh-setup should not be in $PATH”
  1. Han-Wen NienhuysDec 6, 2006
  2. Johannes SchindelinDec 6, 2006
  3. Han-Wen NienhuysDec 6, 2006
  4. Jakub NarebskiDec 6, 2006
  5. Han-Wen NienhuysDec 6, 2006
  6. Jakub NarebskiDec 6, 2006
  7. Han-Wen NienhuysDec 6, 2006
  8. Jakub NarebskiDec 6, 2006
  9. Han-Wen NienhuysDec 6, 2006
  10. Jakub NarebskiDec 6, 2006
  11. Han-Wen NienhuysDec 6, 2006
  12. Jakub NarebskiDec 6, 2006
  13. Han-Wen NienhuysDec 6, 2006
  14. Jakub NarebskiDec 6, 2006
  15. Han-Wen NienhuysDec 6, 2006
  16. Jakub NarebskiDec 6, 2006
  17. Andreas EricssonDec 7, 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.