You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/fd.1
+14-3
Original file line number
Diff line number
Diff line change
@@ -156,9 +156,20 @@ can be used as an alias.
156
156
Enable the display of filesystem errors for situations such as insufficient
157
157
permissions or dead symlinks.
158
158
.TP
159
-
.B\-\-strip-cwd-prefix
160
-
By default, relative paths are prefixed with './' when the output goes to a non interactive terminal
161
-
(TTY). Use this flag to disable this behaviour.
159
+
.B\-\-strip-cwd-prefix[when]
160
+
By default, relative paths are prefixed with './' when -x/--exec,
161
+
-X/--exec-batch, or -0/--print0 are given, to reduce the risk of a
162
+
path starting with '-' being treated as a command line option. Use
163
+
this flag to change this behavior. If this flag is used without a value,
164
+
it is equivalent to passing "always". Possible values are:
165
+
.RS
166
+
.IPnever
167
+
Never strip the ./ at the beginning of paths
168
+
.IPalways
169
+
Always strip the ./ at the beginning of paths
170
+
.IPauto
171
+
Only strip if used with --exec, --exec-batch, or --print0. That is, it resets to the default behavior.
172
+
.RE
162
173
.TP
163
174
.B\-\-one\-file\-system,\-\-mount,\-\-xdev
164
175
By default, fd will traverse the file system tree as far as other options dictate. With this flag, fd ensures that it does not descend into a different file system than the one it started in. Comparable to the -mount or -xdev filters of find(1).
0 commit comments