diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/edit.test | 2 | ||||
-rwxr-xr-x | test/run | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/edit.test b/test/edit.test index 1c0c500..eb38b7a 100644 --- a/test/edit.test +++ b/test/edit.test @@ -6,7 +6,7 @@ $ cat > editor < sed -e 's:foo:bar:' $1 > $1.new < mv $1.new $1 $ chmod +x editor -$ export EDITOR=%PWD/editor +$ export EDITOR=%{PWD}/editor $ quilt new patch > Patch patches/patch is now on top @@ -83,8 +83,7 @@ if (defined $ARGV[0]) { for (;;) { my $line = <SOURCE>; $lineno++; if (defined $line) { - # Substitute %VAR and %{VAR} with environment variables. - $line =~ s[%(\w+)][$ENV{$1}]eg; + # Substitute %{VAR} with environment variables. $line =~ s[%{(\w+)}][$ENV{$1}]eg; } if (defined $line) { |