This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use a different workaround to deceive metalint on something
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 3 Apr 2006 07:08:46 +0000 (07:08 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 3 Apr 2006 07:08:46 +0000 (07:08 +0000)
that doesn't really happen when eval is in charge

p4raw-id: //depot/metaconfig@27695

U/installdirs/Setprefixvar.U

index 9ae8b7c..8d67fcd 100644 (file)
@@ -41,7 +41,10 @@ $startsh
 EOS
 cat <<'EOSC' >>setprefixvar
 eval "${prefixvar}=\"\$ans\""
-eval "${prefixvar}exp\=\"\$ansexp\""
+?X: metalint will see the next line as one that assigns to $exp
+?X: declaring exp as a temp variable exp will catch that.
+?T:exp
+eval "${prefixvar}exp=\"\$ansexp\""
 . ./installprefix
 EOSC
 chmod +x setprefixvar