[Konsole-devel] [Bug 217357] execution of lists fails

Jekyll Wu adaptee at gmail.com
Mon Jul 18 07:29:03 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=217357


Jekyll Wu <adaptee at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adaptee at gmail.com




--- Comment #4 from Jekyll Wu <adaptee gmail com>  2011-07-18 07:29:03 ---
I'm sorry, but I think the problem is misunderstood. Or, the problem actually
does not exist.

Suppose you type 'whatever-emulator -e sleep 3; echo 1' and press ENTER, it's
the SHELL that first take over and divide that into 2 commands:
'whatever-emulator -e sleep 3' and 'echo 1', because ';' is the delimiter among
commands in the shell. Then, it run the two commands ONE BY ONE :

1). run 'whatever-emulator -e sleep3'
2). run 'echo 1' ONLY AFTER the first part has finished its job.

So konsole is invoked as 'konsole -e sleep 3' and xterm is invoked as 'xterm -e
sleep 3'. The reason of the difference behavior in the report is xterm does not
fork and runs in foreground, while konsole forks by default and runs in
background. That means 'konsole -e sleep 3 ' will finish immediately and 'echo
1' will be run before the background konsole finish its job.

If 'konsole --nofork -e sleep 3 ; echo 1' is used, the behavior will be the
same as the xterm case.

So from the point view of konsole, this is not a bug. Many users just do not
konw konsole forks and runs in background by default.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list