maint: prep for global quoting changes: handle irregular cases manually
authorJim Meyering <meyering@redhat.com>
Mon, 9 Jan 2012 20:33:37 +0000 (21:33 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 9 Jan 2012 20:49:51 +0000 (21:49 +0100)
* src/chroot.c (usage): Change ``...'' to '...', and describe the
default more accurately (also adding quotes): s,/bin/sh,'/bin/sh -i',
* src/join.c (usage): Change ` ...'' ' to "...''".
* src/fmt.c (isopen): Change `' to '` in list of bytes, so that
a subsequent change can safely perform the `...' to '...' conversion.
* src/truncate.c (main): Tweak quoting in comments to use '...',
not `...`, for consistency with the rest of comments in coreutils.

src/chroot.c
src/fmt.c
src/join.c
src/truncate.c

index 4e34680..a56da9e 100644 (file)
@@ -148,7 +148,7 @@ Run COMMAND with root directory set to NEWROOT.\n\
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       fputs (_("\
 \n\
-If no command is given, run ``${SHELL} -i'' (default: /bin/sh).\n\
+If no command is given, run '${SHELL} -i' (default: '/bin/sh -i').\n\
 "), stdout);
       emit_ancillary_info ();
     }
index e8aaebf..42e7bbc 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -116,7 +116,7 @@ typedef long int COST;
 
 /* Extra ctype(3)-style macros.  */
 
-#define isopen(c)      (strchr ("([`'\"", c) != NULL)
+#define isopen(c)      (strchr ("(['`\"", c) != NULL)
 #define isclose(c)     (strchr (")]'\"", c) != NULL)
 #define isperiod(c)    (strchr (".?!", c) != NULL)
 
index 8473623..1712062 100644 (file)
@@ -226,8 +226,8 @@ separated by CHAR.  If FORMAT is the keyword 'auto', then the first\n\
 line of each file determines the number of fields output for each line.\n\
 \n\
 Important: FILE1 and FILE2 must be sorted on the join fields.\n\
-E.g., use ` sort -k 1b,1 ' if `join' has no options,\n\
-or use ` join -t '' ' if `sort' has no options.\n\
+E.g., use \"sort -k 1b,1\" if `join' has no options,\n\
+or use \"join -t ''\" if `sort' has no options.\n\
 Note, comparisons honor the rules specified by `LC_COLLATE'.\n\
 If the input is not sorted and some lines cannot be joined, a\n\
 warning message will be given.\n\
index 29cb2fa..5bc541c 100644 (file)
@@ -366,10 +366,10 @@ main (int argc, char **argv)
     {
       if ((fd = open (fname, oflags, omode)) == -1)
         {
-          /* `truncate -s0 -c no-such-file`  shouldn't gen error
-             `truncate -s0 no-such-dir/file` should gen ENOENT error
-             `truncate -s0 no-such-dir/` should gen EISDIR error
-             `truncate -s0 .` should gen EISDIR error */
+          /* 'truncate -s0 -c no-such-file'  shouldn't gen error
+             'truncate -s0 no-such-dir/file' should gen ENOENT error
+             'truncate -s0 no-such-dir/' should gen EISDIR error
+             'truncate -s0 .' should gen EISDIR error */
           if (!(no_create && errno == ENOENT))
             {
               error (0, errno, _("cannot open %s for writing"),