tweak -N sanitation
authorDon Armstrong <don@donarmstrong.com>
Fri, 8 Jul 2016 20:01:58 +0000 (13:01 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 8 Jul 2016 20:01:58 +0000 (13:01 -0700)
dqsub

diff --git a/dqsub b/dqsub
index eba7373..3d6f6f7 100755 (executable)
--- a/dqsub
+++ b/dqsub
@@ -220,7 +220,7 @@ sub generate_qsub_options{
         push @qo,'-N',$options->{name};
     } else {
         push @qo,'-N',join('_',
-                           map {s/[^a-zA-Z0-9]*//g; $_;}
+                           map {my $a = $_; $a =~ s/[^a-zA-Z0-9]*//g; $a;}
                           @{$args}[0..min($#{$args},2)]);
     }
     # join error and output streams