KShell Namespace Reference
Detailed Description
Provides some basic POSIX shell and bash functionality.
- See also:
- KStringHandler
- Since:
- 3.2
Enumerations | |
enum | Options { NoOptions = 0, TildeExpand = 1, AbortOnMeta = 2 } |
enum | Errors { NoError = 0, BadQuoting, FoundMeta } |
Functions | |
QStringList | splitArgs (const QString &cmd, int flags=0, int *err=0) |
QString | joinArgs (const QStringList &args) |
QString | joinArgs (const char *const *argv, int argc=-1) |
QString | joinArgsDQ (const QStringList &args) |
QString | tildeExpand (const QString &path) |
QString | homeDir (const QString &user) |
Enumeration Type Documentation
|
Status codes from splitArgs().
|
|
Flags for splitArgs().
|
Function Documentation
|
Obtain a
Definition at line 369 of file kshell.cpp. |
|
Quotes and joins
Definition at line 283 of file kshell.cpp. |
|
Quotes and joins
Definition at line 257 of file kshell.cpp. |
|
Same as above, but $'' is used instead of '' for the quoting. The output is suitable for splitArgs(), bash, zsh and possibly other bourne-compatible shells, but not for plain sh. The advantage is, that control characters (ASCII less than 32) are escaped into human-readable strings.
Definition at line 311 of file kshell.cpp. |
|
Splits Can optionally perform tilde expansion and/or abort if it finds shell meta characters it cannot process.
Definition at line 65 of file kshell.cpp. |
|
Performs tilde expansion on Interprets "~/path" and "~user/path".
Definition at line 355 of file kshell.cpp. |