KShell Namespace Reference
Provides some basic POSIX shell and bash functionality. More...
Enumerations | |
enum | Options { NoOptions = 0, TildeExpand = 1, AbortOnMeta = 2 } |
enum | Errors { NoError = 0, BadQuoting, FoundMeta } |
Functions | |
KDECORE_EXPORT QStringList | splitArgs (const QString &cmd, int flags=0, int *err=0) |
KDECORE_EXPORT QString | joinArgs (const QStringList &args) |
KDECORE_EXPORT QString | joinArgsDQ (const QStringList &args) |
KDECORE_EXPORT QString | joinArgs (const char *const *argv, int argc=-1) |
KDECORE_EXPORT QString | tildeExpand (const QString &path) |
KDECORE_EXPORT QString | homeDir (const QString &user) |
Detailed Description
Provides some basic POSIX shell and bash functionality.
- See also:
- KStringHandler
Enumeration Type Documentation
|
Flags for splitArgs().
|
|
Status codes from splitArgs().
|
Function Documentation
|
Splits Can optionally perform tilde expansion and/or abort if it finds shell meta characters it cannot process.
Referenced by KApplication::invokeMailer(). |
|
Quotes and joins
|
|
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.
|
|
Quotes and joins
|
|
Performs tilde expansion on Interprets "~/path" and "~user/path".
Referenced by KStandardDirs::addKDEDefaults(). |
|
Obtain a
|