https://bz.apache.org/ooo/show_bug.cgi?id=128403

          Issue ID: 128403
        Issue Type: DEFECT
           Summary: Mixing of perl backticks and system() in
                    main/set_soenv.in
           Product: Build Tools
           Version: 4.2.0-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: solenv
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Shouldn't only one of those be used here?

--- a/main/set_soenv.in
+++ b/main/set_soenv.in
@@ -2224,8 +2224,8 @@ print OUT "#!/bin/sh\n";
 if ( $MINGW eq "yes" )
 {  print OUT 'PATH="/usr/bin:$PATH" : export PATH'."\n"; }
 close( OUT ) || print "Can't close $bootfile: $!";
-system(`cat bootstrap.1 >> bootstrap`);
-system(`chmod +x bootstrap`);
+system('cat bootstrap.1 >> bootstrap');
+system('chmod +x bootstrap');
 #
 #--------------------------------------------------------
 # Moving the bootstrap file to the build home directory.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to