Error passing command to konsole for execution

Bug #120866 reported by holger
8
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
Wishlist
kdebase (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: kdebase

Version: feisty - 2.6.20-16-386
Qt: 3.3.7
KDE: 3.5.6
Konsole: 1.6.6

Steps to reproduce:
1.) Open konsole
2.) Write: konsole --noclose -e "echo hello"

I thought that would open another konsole and execute: "echo hello" in it,
but i get an error-popup(can't open pty) and the output:

kdecore (KProcess): WARNING: _attachPty() 11
konsole: WARNING: Unable to open a pseudo teletype!
Uh oh.. can't get terminal attributes.

kind of regards, Holger

Revision history for this message
Arda (ardasaltoglu+launchpad) wrote :

Same here, using fully up-to-date Edgy, tested with many parameters to -e (scripts and bash built-ins).

However, using --noclose and -e kget, for instance, causes konsole to appear and disappear quickly (in spite of --noclose). Nothing gets printed to stdout.

Kernel: 2.6.17-11-386
Qt: 3.3.6
KDE: 3.5.5
Konsole: 1.6.5

Revision history for this message
Marco Maini (maini10) wrote :

Thanks for your report, fully reproducible in Gutsy development version completely updated. In KDE bugs tracker this issue is already known and the developers consider this strictly related to bug 120322. So, it's possible that this bug is fixed in upstream.

Changed in kdebase:
status: New → Confirmed
Changed in kdebase:
status: Unknown → Confirmed
Changed in kdebase:
status: Confirmed → Fix Released
Changed in kdebase:
importance: Undecided → Low
Revision history for this message
andrew (ahn567) wrote :

I can verify that I get the same "pty errors" for Debian Etch (Konsole 1.6.5 on KDE 3.5.5) using the example...

konsole --noclose -e "echo hello"

However, the problem is that the command must not be inside quotes (which is why -e must be the last option).
So this works as expected...

konsole --noclose -e echo hello

This is NOT nice because xterm does allow the command to be enclosed in quotes, and is therefore more powerful.
For example, both of these work...

xterm -e less fred
xterm -e "less fred"

This means that you can do things like this to look at the gzipped file fred.gz in a new window...

xterm -e "gunzip -c fred.gz | less"

But without the quotes the -e refers only to the gunzip and the output from the xterm statement is piped into less (not what you want!).
In otherwords, neither of these work as desired (no errors though)...

xterm -e gunzip -c fred.gz | less
konsole -e gunzip -c fred.gz | less

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fixed in Intrepid.

Changed in kdebase:
status: Confirmed → Fix Released
Changed in kdebase:
importance: Unknown → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.