add comment about shell quoting rules to the docs.

2001-08-19  Havoc Pennington  <hp@pobox.com>

	* glib/gshell.c (g_shell_unquote): add comment about shell quoting
	rules to the docs.
This commit is contained in:
Havoc Pennington 2001-08-19 05:52:40 +00:00 committed by Havoc Pennington
parent f240813ff6
commit 11f034226f
9 changed files with 47 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -1,3 +1,8 @@
2001-08-19 Havoc Pennington <hp@pobox.com>
* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref

View File

@ -231,6 +231,13 @@ g_shell_quote (const gchar *unquoted_string)
* newlines. The return value must be freed with g_free(). Possible
* errors are in the #G_SHELL_ERROR domain.
*
* Shell quoting rules are a bit strange. Single quotes preserve the
* literal string exactly. escape sequences are not allowed; not even
* \' - if you want a ' in the quoted text, you have to do something
* like 'foo'\''bar'. Double quotes allow $, `, ", \, and newline to
* be escaped with backslash. Otherwise double quotes preserve things
* literally.
*
* Return value: an unquoted string
**/
gchar*