From: Simon Ruderich Date: Sat, 16 Mar 2013 16:03:04 +0000 (+0100) Subject: tig.pl: Use array as argument for open(). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=6629b8c8e9ee16178a5f2fa464936e35a9e58d24;p=config%2Fdotfiles.git tig.pl: Use array as argument for open(). --- diff --git a/tig.pl b/tig.pl index a119218..3939deb 100755 --- a/tig.pl +++ b/tig.pl @@ -40,8 +40,8 @@ my $format = '%x00' # separator from --graph . '%an' . '%x00' # author name . '%s' . '%x00' # subject . '%d'; # ref names -my $cmd = "git log --all --graph --format='$format'"; -open my $fh, '-|', $cmd or die $!; +my @cmd = ('git', 'log', '--all', '--graph', "--format=$format"); +open my $fh, '-|', @cmd or die $!; while (my $line = <$fh>) { # History graph line.