t5505: fix pwd on Windows again
commit3bff7cd86131f6fd39fa3918bdc2682bbfb74717
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 17 Jun 2008 12:42:25 +0000 (17 14:42 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Tue, 17 Jun 2008 12:42:45 +0000 (17 14:42 +0200)
treed2767ac7f50d1f495ba62b12449028f115aba277
parent04008cce95c7b3a23fadf3899ae658388da9edd2
t5505: fix pwd on Windows again

The earlier commit b74e70b3 set $PWD to the particular 'pwd' form to use
on Windows and *nix platforms. But this is not good for two reasons: $PWD
has a predefined meaning to the shell (it influences pwd itself), and
all occurrences of 'pwd' must be replaced by $PWD. This new fix now simply
replaces 'pwd' by a shell function on Windows only, where we can be
reasonably certain that 'bash' is in use, so that the function can call
the builtin 'pwd' explicitly.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
t/t5505-remote.sh