X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fpwd.pl;h=beb591679e261072d8fb0bc80ee0ea6e9cc6cbfd;hb=f8b3e957194312420089105d39c0b37773519523;hp=89fc230ff211c93496df745930e85424f49f6bc8;hpb=32c2e4fbb7ba898d9e58e8d2292dd45b8692070d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/pwd.pl b/lib/pwd.pl index 89fc230..beb5916 100644 --- a/lib/pwd.pl +++ b/lib/pwd.pl @@ -1,20 +1,8 @@ ;# pwd.pl - keeps track of current working directory in PWD environment var ;# -;# $RCSfile: pwd.pl,v $$Revision: 4.0.1.1 $$Date: 92/06/08 13:45:22 $ +;# $RCSfile: pwd.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:11 $ ;# ;# $Log: pwd.pl,v $ -;# Revision 4.0.1.1 92/06/08 13:45:22 lwall -;# patch20: support added to pwd.pl to strip automounter crud -;# -;# Revision 4.0 91/03/20 01:26:03 lwall -;# 4.0 baseline. -;# -;# Revision 3.0.1.2 91/01/11 18:09:24 lwall -;# patch42: some .pl files were missing their trailing 1; -;# -;# Revision 3.0.1.1 90/08/09 04:01:24 lwall -;# patch19: Initial revision -;# ;# ;# Usage: ;# require "pwd.pl"; @@ -46,6 +34,7 @@ sub main'initpwd { sub main'chdir { local($newdir) = shift; + $newdir =~ s|/{2,}|/|g; if (chdir $newdir) { if ($newdir =~ m#^/#) { $ENV{'PWD'} = $newdir;