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

Shell aliases & paths

From
Eli Barzilay <eli@barzilay.org>
Date
May 4, 2010, 20:38 UTC
Message-ID
<19424.34226.564684.613674@winooski.ccs.neu.edu>

AFAICT, a shell command alias (one that starts with a "!") is executed from the repository root, but to make things worse it looks like there is no way to tell which directory it was executed from. If this is correct, then these aliases are useless for anything that need to accept relative paths. Is there something obvious that I'm missing?

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
Next: Jonathan Nieder
Message 1 of 5 in “Shell aliases & paths”
  1. Eli BarzilayMay 4, 2010
  2. Jonathan NiederMay 4, 2010
  3. Eli BarzilayMay 4, 2010
  4. Jonathan NiederMay 4, 2010
  5. Eli BarzilayMay 4, 2010

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.