diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-08 15:08:30 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-09 21:50:08 +0100 |
commit | a517386f1bf8c64ee7617cc2c9d0a16a1d85c8c4 (patch) | |
tree | 20ad6e7d6aa0baed16f884fca2bccff4dda4983d /src/cp.c | |
parent | 9af0dced5a2eb167ec7b9dfe3f358f214e45d41a (diff) | |
download | coreutils-a517386f1bf8c64ee7617cc2c9d0a16a1d85c8c4.tar.xz |
maint: src/*.c: change remaining quotes (without embedded spaces)
Run this (twice):
git grep -E -l '`[^ ]+'\' src/*.c \
|xargs perl -pi -e 's/`([^ ]+'\'')/'\''$1/'
Diffstat (limited to 'src/cp.c')
-rw-r--r-- | src/cp.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -49,7 +49,7 @@ } \ while (0) -/* The official name of this program (e.g., no `g' prefix). */ +/* The official name of this program (e.g., no 'g' prefix). */ #define PROGRAM_NAME "cp" #define AUTHORS \ @@ -282,7 +282,7 @@ regular file.\n\ The command `cp --parents --preserve a/b/c d/e_dir' changes the attributes of the directories d/e_dir/a and d/e_dir/a/b to match the corresponding source directories regardless of whether they - existed before the `cp' command was given. + existed before the 'cp' command was given. Return true if the parent of CONST_DST_NAME and any intermediate directories specified by ATTR_LIST have the proper permissions @@ -294,7 +294,7 @@ re_protect (char const *const_dst_name, size_t src_offset, { struct dir_attr *p; char *dst_name; /* A copy of CONST_DST_NAME we can change. */ - char *src_name; /* The source name in `dst_name'. */ + char *src_name; /* The source name in 'dst_name'. */ ASSIGN_STRDUPA (dst_name, const_dst_name); src_name = dst_name + src_offset; @@ -531,7 +531,7 @@ make_dir_parents_private (char const *const_dir, size_t src_offset, *new_dst = false; *slash++ = '/'; - /* Avoid unnecessary calls to `stat' when given + /* Avoid unnecessary calls to 'stat' when given file names containing multiple adjacent slashes. */ while (*slash == '/') slash++; @@ -623,8 +623,8 @@ do_copy (int n_files, char **file, const char *target_directory, if (target_directory) { /* cp file1...filen edir - Copy the files `file1' through `filen' - to the existing directory `edir'. */ + Copy the files 'file1' through 'filen' + to the existing directory 'edir'. */ int i; /* Initialize these hash tables only if we'll need them. @@ -653,7 +653,7 @@ do_copy (int n_files, char **file, const char *target_directory, { char *arg_no_trailing_slash; - /* Use `arg' without trailing slashes in constructing destination + /* Use 'arg' without trailing slashes in constructing destination file names. Otherwise, we can end up trying to create a directory via `mkdir ("dst/foo/"...', which is not portable. It fails, due to the trailing slash, on at least @@ -661,7 +661,7 @@ do_copy (int n_files, char **file, const char *target_directory, ASSIGN_STRDUPA (arg_no_trailing_slash, arg); strip_trailing_slashes (arg_no_trailing_slash); - /* Append all of `arg' (minus any trailing slash) to `dest'. */ + /* Append all of 'arg' (minus any trailing slash) to 'dest'. */ dst_name = file_name_concat (target_directory, arg_no_trailing_slash, &arg_in_concat); @@ -678,10 +678,10 @@ do_copy (int n_files, char **file, const char *target_directory, else { char *arg_base; - /* Append the last component of `arg' to `target_directory'. */ + /* Append the last component of 'arg' to 'target_directory'. */ ASSIGN_BASENAME_STRDUPA (arg_base, arg); - /* For `cp -R source/.. dest', don't copy into `dest/..'. */ + /* For `cp -R source/.. dest', don't copy into 'dest/..'. */ dst_name = (STREQ (arg_base, "..") ? xstrdup (target_directory) : file_name_concat (target_directory, arg_base, @@ -745,9 +745,9 @@ do_copy (int n_files, char **file, const char *target_directory, static struct cp_options x_tmp; new_dest = find_backup_file_name (dest, x->backup_type); - /* Set x->backup_type to `no_backups' so that the normal backup + /* Set x->backup_type to 'no_backups' so that the normal backup mechanism is not used when performing the actual copy. - backup_type must be set to `no_backups' only *after* the above + backup_type must be set to 'no_backups' only *after* the above call to find_backup_file_name -- that function uses backup_type to determine the suffix it applies. */ x_tmp = *x; @@ -834,7 +834,7 @@ decode_preserve_arg (char const *arg, struct cp_options *x, bool on_off) PRESERVE_OWNERSHIP, PRESERVE_LINK, PRESERVE_CONTEXT, PRESERVE_XATTR, PRESERVE_ALL }; - /* Valid arguments to the `--preserve' option. */ + /* Valid arguments to the '--preserve' option. */ static char const* const preserve_args[] = { "mode", "timestamps", @@ -1020,7 +1020,7 @@ main (int argc, char **argv) case PRESERVE_ATTRIBUTES_OPTION: if (optarg == NULL) { - /* Fall through to the case for `p' below. */ + /* Fall through to the case for 'p' below. */ } else { |