PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms 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
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  1. # NOTE: Derived from ..\..\lib\POSIX.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package POSIX;
  5. #line 658 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\getcwd.al)"
  6. sub getcwd
  7. {
  8. usage "getcwd()" if @_ != 0;
  9. if ($^O eq 'MSWin32') {
  10. # this perhaps applies to everyone else also?
  11. require Cwd;
  12. $cwd = &Cwd::cwd;
  13. }
  14. else {
  15. chop($cwd = `pwd`);
  16. }
  17. $cwd;
  18. }
  19. # end of POSIX::getcwd
  20. 1;