PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/IronPython_Main/Runtime/Tests/LinqDlrTests/testenv/perl/lib/auto/POSIX/getcwd.al

#
Unknown | 22 lines | 20 code | 2 blank | 0 comment | 0 complexity | 9a9047cb751d1f52e70715e6099864ed MD5 | raw file
 1# NOTE: Derived from ..\..\lib\POSIX.pm.
 2# Changes made here will be lost when autosplit is run again.
 3# See AutoSplit.pm.
 4package POSIX;
 5
 6#line 658 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\getcwd.al)"
 7sub getcwd
 8{
 9    usage "getcwd()" if @_ != 0;
10    if ($^O eq 'MSWin32') {
11	# this perhaps applies to everyone else also?
12	require Cwd;
13	$cwd = &Cwd::cwd;
14    }
15    else {
16	chop($cwd = `pwd`);
17    }
18    $cwd;
19}
20
21# end of POSIX::getcwd
221;