Make 'cat' default to '.' (cwd) instead of requiring argument
authorDavor Ocelic <docelic@crystallabs.io>
Mon, 29 Apr 2019 00:10:31 +0200
changeset 106 94d941f13a5a
parent 105 e7e850a1540c
child 107 3e31beb6c845
Make 'cat' default to '.' (cwd) instead of requiring argument
shelldap
--- a/shelldap	Mon Apr 29 00:09:43 2019 +0200
+++ b/shelldap	Mon Apr 29 00:10:31 2019 +0200
@@ -857,8 +857,7 @@
 	my $use_pager = shift;
 
 	unless ( $dn ) {
-		print "No dn provided.\n";
-		return;
+		$dn = '.'
 	}
 
 	# support '.'