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

[RFC] test: Old shells and physical paths

From
David Michael <fedora.dm0@gmail.com>
Date
Dec 19, 2012, 23:22 UTC
Message-ID
<CAEvUa7=sOPF9xwfGuBXv0CBZhT+79+8z3tm9ar_cz3q--kfqRQ@mail.gmail.com>
Hi,

In working on a port, I have to tolerate an ancient shell. The "cd" and "pwd" commands don't understand the "-P" flag for physical paths, as some tests use. The biggest offender is "cd -P" causing a failure in t/test-lib.sh (since 1bd9c64), which is sourced by every test script.

This shell does understand the difference between physical and logical paths, but the only way to choose which is with a shell option. The shell option is named "logical" which is not portable; GNU bash uses the opposite, "physical".

Does anyone have any suggestions for how to handle this?

Would it be acceptable to instead force the platform's shell option (if it exists) to always use physical paths for the tests and drop the "-P" flags?

If not, is it worth maintaining compatibility wrappers for this one obscure platform?

Thanks.
David
Next: Junio C Hamano
Message 1 of 5 in “[RFC] test: Old shells and physical paths”
  1. David MichaelDec 19, 2012
  2. Junio C HamanoDec 20, 2012
  3. David MichaelDec 20, 2012
  4. David AguilarDec 20, 2012
  5. David MichaelDec 20, 2012

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.