File: exec_substring_plus.sh

package info (click to toggle)
bfs 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,484 kB
  • sloc: ansic: 21,302; sh: 3,227; makefile: 221
file content (14 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# https://pubs.opengroup.org/onlinepubs/9799919799/utilities/find.html
#
#     Only a <plus-sign> that immediately follows an argument containing only
#     the two characters "{}" shall punctuate the end of the primary expression.
#     Other uses of the <plus-sign> shall not be treated as special.
#     ...
#     If a utility_name or argument string contains the two characters "{}", but
#     not just the two characters "{}", it is implementation-defined whether
#     find replaces those two characters or uses the string without change.

invoke_bfs basic -exec printf '%s %s %s %s\n' {} {}+ +{} + \; | sed 's/ .*//' >"$OUT"
sort_output
diff_output