add comment about shell quoting rules to the docs.
authorHavoc Pennington <hp@pobox.com>
Sun, 19 Aug 2001 05:52:40 +0000 (05:52 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Sun, 19 Aug 2001 05:52:40 +0000 (05:52 +0000)
2001-08-19  Havoc Pennington  <hp@pobox.com>

* glib/gshell.c (g_shell_unquote): add comment about shell quoting
rules to the docs.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gshell.c

index a2efbea..8aeb2c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index a2efbea..8aeb2c9 100644 (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
index a2efbea..8aeb2c9 100644 (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
index a2efbea..8aeb2c9 100644 (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
index a2efbea..8aeb2c9 100644 (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
index a2efbea..8aeb2c9 100644 (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
index a2efbea..8aeb2c9 100644 (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
index a2efbea..8aeb2c9 100644 (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
index 79db9d3..e27d799 100644 (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*