mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
docs: Move the shell SECTION
Move it to a separate file. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3037
This commit is contained in:
parent
214853d6df
commit
cf52727f03
@ -69,6 +69,7 @@ content_files = [
|
|||||||
"base64.md",
|
"base64.md",
|
||||||
"goption.md",
|
"goption.md",
|
||||||
"data-structures.md",
|
"data-structures.md",
|
||||||
|
"shell.md",
|
||||||
"uuid.md",
|
"uuid.md",
|
||||||
"unicode.md",
|
"unicode.md",
|
||||||
"version.md",
|
"version.md",
|
||||||
|
@ -168,6 +168,7 @@ expand_content_files = [
|
|||||||
'markup.md',
|
'markup.md',
|
||||||
'goption.md',
|
'goption.md',
|
||||||
'data-structures.md',
|
'data-structures.md',
|
||||||
|
'shell.md',
|
||||||
'unicode.md',
|
'unicode.md',
|
||||||
'uuid.md',
|
'uuid.md',
|
||||||
'version.md',
|
'version.md',
|
||||||
|
15
docs/reference/glib/shell.md
Normal file
15
docs/reference/glib/shell.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Title: Shell Utilities
|
||||||
|
SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
SPDX-FileCopyrightText: 2014 Matthias Clasen
|
||||||
|
|
||||||
|
# Shell Utilities
|
||||||
|
|
||||||
|
GLib provides the functions [func@GLib.shell_quote] and
|
||||||
|
[func@GLib.shell_unquote] to handle shell-like quoting in strings. The function
|
||||||
|
[func@GLib.shell_parse_argv] parses a string similar to the way a POSIX shell
|
||||||
|
(`/bin/sh`) would.
|
||||||
|
|
||||||
|
Note that string handling in shells has many obscure and historical
|
||||||
|
corner-cases which these functions do not necessarily reproduce. They
|
||||||
|
are good enough in practice, though.
|
||||||
|
|
@ -33,20 +33,6 @@
|
|||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
#include "gthread.h"
|
#include "gthread.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* SECTION:shell
|
|
||||||
* @title: Shell-related Utilities
|
|
||||||
* @short_description: shell-like commandline handling
|
|
||||||
*
|
|
||||||
* GLib provides the functions g_shell_quote() and g_shell_unquote()
|
|
||||||
* to handle shell-like quoting in strings. The function g_shell_parse_argv()
|
|
||||||
* parses a string similar to the way a POSIX shell (/bin/sh) would.
|
|
||||||
*
|
|
||||||
* Note that string handling in shells has many obscure and historical
|
|
||||||
* corner-cases which these functions do not necessarily reproduce. They
|
|
||||||
* are good enough in practice, though.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* G_SHELL_ERROR:
|
* G_SHELL_ERROR:
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user