diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-11-12 23:59:15 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-26 14:44:23 -0300 |
commit | f11cc18971ae625b0481abed83e55bc0d4eb8392 (patch) | |
tree | 867a3779392082831456c5e4b05f500a9f7a17c3 /t | |
parent | 19d2bdc17e5767261b03cec04e2fbb690cdf67be (diff) | |
download | perl-f11cc18971ae625b0481abed83e55bc0d4eb8392.tar.gz |
t/io/fs.t: Handle Android's pwd being a shell builtin
Diffstat (limited to 't')
-rw-r--r-- | t/io/fs.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,6 +19,10 @@ elsif ($^O eq 'VMS') { elsif ($ENV{PWD}) { $wd = $ENV{PWD}; } +elsif ( $^O =~ /android/ ) { + # On Android, pwd is a shell builtin, so plain `pwd` won't cut it + $wd = `sh -c pwd`; +} else { $wd = `pwd`; } |