Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 21 of 21) sorted by relevance

/coreutils/tests/cp/
Dbackup-1.sh22 suffix=.b
24 file_backup="$file$suffix"
30 cp --force --backup=simple --suffix=$suffix $file $file || fail=1
31 cp -T --force --backup=simple --suffix=$suffix $file $file || fail=1
/coreutils/src/
Dbasename.c84 remove_suffix (char *name, char const *suffix) in remove_suffix() argument
90 sp = suffix + strlen (suffix); in remove_suffix()
92 while (np > name && sp > suffix) in remove_suffix()
103 perform_basename (char const *string, char const *suffix, bool use_nuls) in perform_basename() argument
114 if (suffix && IS_RELATIVE_FILE_NAME (name) && ! FILE_SYSTEM_PREFIX_LEN (name)) in perform_basename()
115 remove_suffix (name, suffix); in perform_basename()
127 char const *suffix = nullptr; in main() local
147 suffix = optarg; in main()
182 perform_basename (argv[optind], suffix, use_nuls); in main()
Dmktemp.c151 char *suffix = nullptr; in main() local
192 suffix = optarg; in main()
222 if (suffix) in main()
231 suffix_len = strlen (suffix); in main()
234 memcpy (dest_name + len, suffix, suffix_len + 1); in main()
236 suffix = dest_name + len; in main()
241 suffix = strrchr (template, 'X'); in main()
242 if (!suffix) in main()
243 suffix = strchr (template, '\0'); in main()
245 suffix++; in main()
[all …]
Dnumfmt.c172 static char const *suffix = nullptr; variable
766 suffix ? suffix : ""); in double_to_human()
815 suffix ? suffix : ""); in double_to_human()
1276 if (suffix && strlen (text) > strlen (suffix)) in process_suffixed_number()
1278 char *possible_suffix = text + strlen (text) - strlen (suffix); in process_suffixed_number()
1280 if (STREQ (suffix, possible_suffix)) in process_suffixed_number()
1284 devmsg ("trimming suffix %s\n", quote (suffix)); in process_suffixed_number()
1523 suffix = optarg; in main()
Ddircolors.c522 char const *suffix; in main() local
527 suffix = "';\nexport LS_COLORS\n"; in main()
532 suffix = "'\n"; in main()
538 fputs (suffix, stdout); in main()
Dcsplit.c137 static char *volatile suffix = nullptr; variable
890 if (suffix) in make_filename()
891 sprintf (filename_space + strlen (prefix), suffix, num); in make_filename()
1325 suffix = optarg; in main()
1369 = (suffix in main()
1370 ? max_out (suffix) in main()
Ddd.c1422 char *suffix; in parse_integer() local
1424 strtol_error e = xstrtoumax (str, &suffix, 10, &n, suffixes); in parse_integer()
1428 && *suffix == 'B' && str < suffix && suffix[-1] != 'B') in parse_integer()
1430 suffix++; in parse_integer()
1431 if (!*suffix) in parse_integer()
1436 && *suffix == 'x') in parse_integer()
1439 intmax_t o = parse_integer (suffix + 1, &f); in parse_integer()
Dsort.c1388 char *suffix; in specify_sort_size() local
1389 enum strtol_error e = xstrtoumax (s, &suffix, 10, &n, "EgGkKmMPQRtTYZ"); in specify_sort_size()
1392 if (e == LONGINT_OK && ISDIGIT (suffix[-1])) in specify_sort_size()
1401 if (e == LONGINT_INVALID_SUFFIX_CHAR && ISDIGIT (suffix[-1]) && ! suffix[1]) in specify_sort_size()
1402 switch (suffix[0]) in specify_sort_size()
4161 char *suffix; in parse_field_count() local
4164 switch (xstrtoumax (string, &suffix, 10, &n, "")) in parse_field_count()
4184 return suffix; in parse_field_count()
Ddircolors.hin87 # to color below. Put the suffix, a space, and the color init string.
Dstat.c674 char const *suffix) in make_format() argument
684 strcpy (dst, suffix); in make_format()
Dcopy.c2099 subst_suffix (char const *str, char const *suffix, char const *newsuffix) in subst_suffix() argument
2101 idx_t prefixlen = suffix - str; in subst_suffix()
/coreutils/tests/split/
Dadditional-suffix.sh24 split --lines=2 --additional-suffix=.txt in > out || fail=1
42 returns_ 1 split --lines=2 --additional-suffix=a/b in 2>err >out || fail=1
44 returns_ 1 split --lines=2 --additional-suffix=a/ in 2>err >out || fail=1
Dsuffix-auto-length.sh33 split file.in "$prefix" -b1 --numeric --additional-suffix="$add_suffix" \
/coreutils/man/
Dbasename.x2 basename \- strip directory and suffix from filenames
/coreutils/doc/
Dsort-version.texi585 A suffix (i.e., a file extension) is defined as: a dot, followed by an
590 The longest such match is used, except that a suffix is not
600 If the suffix-less strings do not compare equal, this comparison
604 If the suffix-less strings compare equal, the suffixes are restored
612 @samp{hello-8.txt}: the suffix is @samp{.txt}
615 @samp{hello-8.2.txt}: the suffix is @samp{.txt}
619 @samp{hello-8.0.12.tar.gz}: the suffix is @samp{.tar.gz} (@samp{.0.12}
623 @samp{hello-8.2}: no suffix (suffix is an empty string)
626 @samp{hello.foobar65}: the suffix is @samp{.foobar65}
629 @samp{gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2}: the suffix is
[all …]
Dcoreutils.texi45 * basename: (coreutils)basename invocation. Strip directory and suffix.
393 * basename invocation:: Strip directory and suffix from a file name
587 @item -S @var{suffix}
588 @itemx --suffix=@var{suffix}
590 @opindex --suffix
591 Append @var{suffix} to each backup file made with @option{-b}.
880 @item -S @var{suffix}
881 @itemx --suffix=@var{suffix}
883 @opindex --suffix
884 @cindex backup suffix
[all …]
/coreutils/scripts/build-older-versions/
Dbuild-older-versions.sh133 --program-suffix="$version" \
DREADME.older-versions92 ./configure --program-suffix=-5.97
/coreutils/tests/ln/
Dmisc.sh112 $cmd --backup=simple --suffix=.orig x a || fail=1
/coreutils/tests/
Dlocal.mk401 tests/split/suffix-auto-length.sh \
402 tests/split/suffix-length.sh \
403 tests/split/additional-suffix.sh \
/coreutils/
DNEWS11 numfmt options like --suffix no longer have an arbitrary 127-byte limit.
1029 For example, --suffix='/' and --suffix='' are now no-ops.
2282 split now accepts the --additional-suffix option, to append an
2283 additional static suffix to output file names.
2658 split no longer creates files with a suffix length that
3088 mktemp now accepts the option --suffix to provide a known suffix
3090 "mktemp fileXXXXXX.txt" are able to infer an appropriate --suffix.
4190 suffix when A and B are directories as well as when they are not.
5553 - A size suffix without a leading integer generates a suffix in the output.
5626 The nonstandard 'D' suffix (e.g. '1MD') is now obsolescent.
[all …]