home *** CD-ROM | disk | FTP | other *** search
- # vi:si:ts=4:sw=4
- # Implements pushd using a system Variable (DIRSTACK) to store the stack.
-
- die "Usage: pushd directory\n" unless ($#ARGV == 0);
-
- $dirs = $ENV{"FS\$Full"}." ".$ENV{"DIRSTACK"};
-
- die "Dir stack too full\n" unless (length($dirs) < 240);
-
- $dirs =~ s/</|</g;
- system("Set DIRSTACK $dirs");
- system("%dir $ARGV[0]");
-