[konsole] [Bug 436950] Konsole --tabs-from-file command behavior is opaque and hard to debug

Thomas Dreibholz bugzilla_noreply at kde.org
Tue Dec 12 10:01:34 GMT 2023


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

Thomas Dreibholz <dreibh at iem.uni-due.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dreibh at iem.uni-due.de

--- Comment #1 from Thomas Dreibholz <dreibh at iem.uni-due.de> ---
I can confirm the unexpected and undocumented behaviour of Konsole (using
konsole 21.12.3, under Kubuntu 22.04):

Test tabs file contents:
-----
title: test1;; command: date;;
title: test2;; command: /bin/bash -c 'date && sleep 60';;
title: test3;; command: /bin/bash -c "date && sleep 60";;
title: test4;; command: /bin/bash -c \'date && sleep 60\';;
title: test5;; command: /bin/bash -c \"date && sleep 60\";;
title: test6;; command: /bin/bash -c \'date \&\& sleep 60\';;
title: test7;; command: /bin/bash -c \"date \&\& sleep 60\";;
title: test8;; command: date;;
-----

It seems Konsole is not properly handling quotations (tried: " and '), which
makes it impossible to write a more complex command call as call to a shell
with the actual command line as parameter. test2 and test3 fail with:
&&: -c: line 1: unexpected EOF while looking for matching `''
&&: -c: line 2: syntax error: unexpected end of file
This may be a bug in the command parsing code? At least, the documentation
(https://docs.kde.org/stable5/en/konsole/konsole/command-line-options.html)
should clearly specify how to handle quotations.

The "--hold" option is really useful for debugging --tabs-from-file issues.
This should be clearly stated by the documentation!

Trying to escape the quotation marks is not successful as well (test4 to
test7).

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


More information about the konsole-devel mailing list