emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 40af27859e0: ; * lib-src/etags.c (escape_shell_arg_string): Min


From: Stefan Kangas
Subject: emacs-29 40af27859e0: ; * lib-src/etags.c (escape_shell_arg_string): Minor doc fix.
Date: Tue, 6 Dec 2022 12:11:33 -0500 (EST)

branch: emacs-29
commit 40af27859e0fc243d1fcfd0ddab4fe1748568c58
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    ; * lib-src/etags.c (escape_shell_arg_string): Minor doc fix.
---
 lib-src/etags.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib-src/etags.c b/lib-src/etags.c
index b76590631d8..a06c236140f 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -7722,12 +7722,12 @@ etags_mktmp (void)
 
 #if !MSDOS && !defined (DOS_NT)
 /*
- * Adds single quotes around a string, if found single quotes, escaped it.
+ * Add single quotes around a string, and escape any single quotes.
  * Return a newly-allocated string.
  *
  * For example:
- * escape_shell_arg_string("test.txt") => 'test.txt'
- * escape_shell_arg_string("'test.txt") => ''\''test.txt'
+ * escape_shell_arg_string ("test.txt")  => "'test.txt'"
+ * escape_shell_arg_string ("'test.txt") => "''\''test.txt'"
  */
 static char *
 escape_shell_arg_string (char *str)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]