Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19885

When setting the environment of QProcess, a script without a shebang line fails to execute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.10.1
    • 4.7.3
    • Core: I/O
    • 48d677365a1061aa973b38d7b640498830bda452 28666d167aa8e602c0bea25ebc4d51b55005db13

    Description

      How to reproduce:
      1) Save the myprog perl script and test-env.cpp in the same directory.
      2) Make executable myprog by "chmod 755 myprog".
      3) Compile test-env.cpp without defining SETENV.
      4) Launch the just compiled executable and verify that the the script is
      actually executed.
      5) Now compile test-env.cpp by using -DSETENV.
      6) Launch again the executable and verify that it now fails to execute.

      Attachments

        1. myprog
          0.1 kB
        2. test-env.cpp
          0.4 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              rgheck Richard Heck
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes