git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] test: Old shells and physical paths
@ 2012-12-19 23:22 David Michael
  2012-12-20  0:17 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: David Michael @ 2012-12-19 23:22 UTC (permalink / raw)
  To: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-20 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 23:22 [RFC] test: Old shells and physical paths David Michael
2012-12-20  0:17 ` Junio C Hamano
2012-12-20  2:28   ` David Michael
2012-12-20  5:01     ` David Aguilar
2012-12-20 16:25       ` David Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).