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

--- Comment #5 from Igor Kushnir <igor...@gmail.com> ---
Just tested: quoting works as well as escaping, so the issue is not too bad.
Perhaps the UI should show an error message earlier - before the user attempts
to actually run the program, because the problem is localized in the value of
the Arguments line edit.

The relevant code was implemented in 2009 by
https://commits.kde.org/kdevelop/fd240820495a98ff30b61af3476e0e5bc6fcd606. The
code currently resides in
https://invent.kde.org/kdevelop/kdevelop/-/blob/c8417fc2baf2ecba70e7e2b474fa2d00b1970265/plugins/execute/executeplugin.cpp#L62.
The job of splitting arguments is fully delegated to KShell::splitArgs(cmd,
KShell::TildeExpand | KShell::AbortOnMeta, err). Its documentation:
https://api.kde.org/frameworks/kcoreaddons/html/namespaceKShell.html#a2af8a3c7f2b485868a1169f4de07a050.
The documentation for the AbortOnMeta flag suggests it is the culprit, and
indeed removing the flag makes unquoted and unescaped square brackets work. I
don't know whether removing this flag is going to break something else though.
Needs a more detailed analysis and careful testing.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to