develooper Front page | perl.perl5.porters | Postings from January 2005

[PATCH] mkdir should default to $_

Thread Next
From:
Rafael Garcia-Suarez
Date:
January 7, 2005 08:31
Subject:
[PATCH] mkdir should default to $_
Message ID:
20050107173144.29708678@grubert.mandrakesoft.com
As Steve Lanning was observing on IRC, rmdir defaults to $_, but
rmdir doesn't.

A real patch would be along the lines of : (but this one seems to
make mkdir non-overridable)

--- opcode.pl   (revision 4211)
+++ opcode.pl   (working copy)
@@ -816,7 +816,7 @@
 link           link                    ck_fun          isT@    S S
 symlink                symlink                 ck_fun          isT@    S S
 readlink       readlink                ck_fun          stu%    S?
-mkdir          mkdir                   ck_fun          isT@    S S?
+mkdir          mkdir                   ck_fun          isTu@   S? S?
 rmdir          rmdir                   ck_fun          isTu%   S?
 
 # Directory calls.
End.

Thread Next


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