Take only second argument for run_{cd,edit,mkdir}
authorSalvatore Bonaccorso <carnil@debian.org>
Wed, 10 Oct 2012 22:44:40 +0200
changeset 41 3e7c107f8b93
parent 40 c6a3abc56c74
child 42 b8c6d4e8f828
Take only second argument for run_{cd,edit,mkdir} Make the behaviour of cd, edit and mkdir similar to cat and delete/rm and fail if some RDN's in the argument contain spaces without beeing quoted. --- shelldap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
shelldap
--- a/shelldap	Mon Sep 12 08:35:25 2011 -0700
+++ b/shelldap	Wed Oct 10 22:44:40 2012 +0200
@@ -1013,7 +1013,7 @@
 sub run_cd 
 {
 	my $self	= shift;
-	my $newbase = join ' ', @_;
+	my $newbase = shift;
 
 	# convert given path to a DN
 	$newbase = $self->path_to_dn( $newbase );
@@ -1225,7 +1225,7 @@
 sub run_edit
 {
 	my $self = shift;
-	my $dn   = join ' ', @_;
+	my $dn   = shift;
 
 	unless ( $dn ) {
 		print "No dn provided.\n";
@@ -1569,7 +1569,7 @@
 sub run_mkdir
 {
 	my $self = shift;
-	my $dir  = join ' ', @_;
+	my $dir  = shift;
 
 	unless ( $dir ) {
 		print "No 'directory' provided.\n";