#!/usr/local/bin/perl -w eval 'exec /usr/local/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell # $Id: pwd,v 1.1.1.1 2001/06/06 08:55:04 sdague Exp $ # # $Log: pwd,v $ # Revision 1.1.1.1 2001/06/06 08:55:04 sdague # initial import # # Revision 1.1 2001/05/14 00:49:39 sdague # added more files # # Revision 1.0 1999/03/04 15:19:03 meltzek # Initial revision # use strict; use Cwd; my ($VERSION) = '$Revision: 1.1.1.1 $' =~ /([.\d]+)/; my $dir; # Account for / and \ on Win32 and non-Win32 systems ($^O=~/Win32/) ? ($dir = getcwd) =~s/\//\\/g : ($dir=getcwd); print $dir . "\n"; exit; __END__ =pod =head1 NAME pwd - working directory name =head1 SYNOPSIS pwd =head1 DESCRIPTION Pwd prints the pathname of the working (current) directory. =head2 OPTIONS I takes no options. =head1 ENVIRONMENT The working of I is not influenced by any environment variables. =head1 BUGS I has no known bugs. =head1 REVISION HISTORY $Log: pwd,v $ Revision 1.1.1.1 2001/06/06 08:55:04 sdague initial import Revision 1.1 2001/05/14 00:49:39 sdague added more files Revision 1.0 1999/03/04 15:19:03 meltzek Initial revision =head1 AUTHOR The Perl implementation of I was written by Kevin Meltzer, I. =head1 COPYRIGHT and LICENSE This program is copyright by Kevin Meltzer 1999. This program is free and open software. You may use, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same. =cut