Update of /cvsroot/ldapsh/ldapsh
In directory sc8-pr-cvs1:/tmp/cvs-serv26568
Modified Files:
Tag: PATCH-778345
ldapsh
Log Message:
If `cd` or `pushd` is invoked without arguments, the CWD is unchanged
and no error results. In this case, `pushd` will push the CWD onto the
directory stack.
Index: ldapsh
===================================================================
RCS file: /cvsroot/ldapsh/ldapsh/ldapsh,v
retrieving revision 1.17
retrieving revision 1.17.4.1
diff -C2 -d -r1.17 -r1.17.4.1
*** ldapsh 27 Jul 2003 05:20:40 -0000 1.17
--- ldapsh 27 Jul 2003 06:20:31 -0000 1.17.4.1
***************
*** 1109,1115 ****
=head3 cd
! B<Synopsis>: C<cd 'E<lt>RDNE<gt>'>
Change the I<current working directory> to the specified RDN. You can specify multiple RDNs separated by commas (in the reverse order of the DN, to allow completion). You can also specify ".." to go to the parent DN.
See also the L<acd|acd>, L<setdn|setdn>, L<pushd|pushd> and L<popd|popd> commands.
--- 1109,1116 ----
=head3 cd
! B<Synopsis>: C<cd ['E<lt>RDNE<gt>']>
Change the I<current working directory> to the specified RDN. You can specify multiple RDNs separated by commas (in the reverse order of the DN, to allow completion). You can also specify ".." to go to the parent DN.
+ If no RDN is specified, the I<current working directory> is not changed.
See also the L<acd|acd>, L<setdn|setdn>, L<pushd|pushd> and L<popd|popd> commands.
***************
*** 1121,1124 ****
--- 1122,1126 ----
my $SubPath = shift();
+ $SubPath = "" unless defined($SubPath);
$SubPath =~ s/\s*,\s*$//;
$SubPath = join(',', reverse(split(/\s*,\s*/, $SubPath)));
***************
*** 1202,1205 ****
--- 1204,1209 ----
Perform the same action as the L<cd|cd> command. If the action succeeds, the old working directory is stored on a stack (which can be shown using L<dirs|dirs>). It can be restored using L<popd|popd>.
+
+ If no RDN is given, the I<current working directory> will be pushed onto the stack.
=cut
|