develooper Front page | perl.perl5.porters | Postings from December 2015

Cwd::abs_path "/some/nonexisting/path/"

From:
Achim Gratz
Date:
December 9, 2015 18:35
Subject:
Cwd::abs_path "/some/nonexisting/path/"
Message ID:
87twnrjwr3.fsf@Rainer.invalid
There's a difference between Linux and Cygwin at least I can't quite
wrap my head around.  Which is the intended behaviour, anyway?

On Cygwin:

--8<---------------cut here---------------start------------->8---
$ perl -MCwd -E 'eval qq(Cwd::abs_path "/usr/bla/fasel"); say "$\!: $^E";'
: 
$ perl -MCwd -E 'Cwd::abs_path "/usr/bla/fasel";'
/usr/bla/fasel: No such file or directory at -e line 1.
--8<---------------cut here---------------end--------------->8---

On Linux:

--8<---------------cut here---------------start------------->8---
$ perl -MCwd -E 'eval qq(Cwd::abs_path "/usr/bla/fasel"); say "$\!: $^E"'
No such file or directory: No such file or directory
$ perl -MCwd -E 'say Cwd::abs_path "/bla/fasel"'

--8<---------------cut here---------------end--------------->8---



Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About