Skip to content

Commit

Permalink
Added quote around filename variable to escape metacharacters
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika committed Sep 2, 2017
1 parent 89e6e56 commit 6c85230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/convert_gb_to_fa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

my $input_file = $ARGV[0];

open(IN, "gunzip -c -f $input_file |") or die "can’t open pipe to $input_file";
open(IN, "gunzip -c -f \Q$input_file\E |") or die "can’t open pipe to $input_file";

while (<IN>) {
if (m/^VERSION\s+(\S+)/) {
Expand Down

0 comments on commit 6c85230

Please sign in to comment.