[Bug 77837] New: in kdevelop, console apps don't pause after execution

Carl Glen Henshaw ghenshaw at space.nrl.navy.mil
Wed Mar 17 16:13:06 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=77837      
           Summary: in kdevelop, console apps don't pause after execution
           Product: kdevelop
           Version: 3.0.2
          Platform: FreeBSD Ports
        OS/Version: FreeBSD
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel kdevelop org
        ReportedBy: ghenshaw space nrl navy mil


Version:           3.0.2 (using KDE KDE 3.2.1)
Installed from:    FreeBSD Ports
Compiler:          gcc 3.3 
OS:          FreeBSD

Under FreeBSD, when executing a C or C++ console application (like the "Simple Hello world application"), the konsole in which the app is executing closes immediately instead of waiting for a keypress. This makes it impossible to see the program output.

Apparently this is because the shell script that executes after the app exits:

/bin/sh -c '<program>; echo "Press Enter to continue!";read

is valid bash syntax. But for Posix sh, read requires at least one argument, eg "read var".
Under Linux the code works because /bin/sh invokes bash; but on FreeBSD /bin/sh invokes, well, sh.




More information about the KDevelop-devel mailing list