Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8d8a6cf5e433f410d4e17f0c9028364384f5915b
      
https://github.com/Perl/perl5/commit/8d8a6cf5e433f410d4e17f0c9028364384f5915b
  Author: Tony Cook <t...@develop-help.com>
  Date:   2021-06-09 (Wed, 09 Jun 2021)

  Changed paths:
    M dist/PathTools/Cwd.pm

  Log Message:
  -----------
  remove code that assuming finding pwd on the path is reasonable

We deliberately clear PATH when invoking pwd, so this search is
useless.


  Commit: a52672c51add571c587f2632221f830dc9d70375
      
https://github.com/Perl/perl5/commit/a52672c51add571c587f2632221f830dc9d70375
  Author: Tony Cook <t...@develop-help.com>
  Date:   2021-06-09 (Wed, 09 Jun 2021)

  Changed paths:
    M dist/PathTools/Cwd.pm

  Log Message:
  -----------
  don't fallback to simple pwd

When _backtick_pwd invokes $pwd_cmd it first clears the PATH, and since
the command has no shell metacharacters, it perl won't invoke the
shell, so it will always fail.

An alternative here might be to use "/bin/sh -c pwd" but there's no
guarantee that pwd is available as a shell builtin.


  Commit: 44e4059baf939468ae61cb63c0c2871c40147dc3
      
https://github.com/Perl/perl5/commit/44e4059baf939468ae61cb63c0c2871c40147dc3
  Author: Tony Cook <t...@develop-help.com>
  Date:   2021-06-09 (Wed, 09 Jun 2021)

  Changed paths:
    M dist/PathTools/Cwd.pm

  Log Message:
  -----------
  avoid a prototype warning assigning \&getcwd to *cwd

This would produce a warning if we fallback to using getcwd() where
getcwd() has a prototype.


Compare: https://github.com/Perl/perl5/compare/a5823872283b...44e4059baf93

Reply via email to