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: dirs\n" unless ($#ARGV == -1);
-
- @dirs = split(' ', $ENV{"DIRSTACK"});
- print "Directory stack:\n";
- foreach (@dirs)
- {
- print "$_\n";
- }
-