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
However, for the special option -x, --exec <cmd>. There are two things:
for example, if I run fd -I -t d '^target$' -x echo ./some_path. It gonna show the ./some_path first, then the query results followed.
even the -x, --exec <cmd> is an option, but looks like it can only used after <pattern>.
For the first situation, I understand that -x is special and it is hard to tell if the path after it is the arguments of command or the search path. However, do you guys think it should be some warning inside README?
For the second situation, can we update the fd command's format like: fd [FLAGS/OPTIONS] [<pattern>] [-x/-X][<path>...]?
Thank you!
The text was updated successfully, but these errors were encountered:
-x eats everything that comes after it until ;, so if you want to you can write
$ fd -x echo\; pattern path
but it's a lot easier to just write
$ fd pattern path -x echo
This is mentioned in the README here, but isn't obvious from the fd -h output. fd --help has some examples, but none with patterns or paths that I see.
What version of
fd
are you using?[fd 8.3.1]
fd -h
shows[<path>...]
as the ARGS offd
.However, for the special option
-x, --exec <cmd>
. There are two things:fd -I -t d '^target$' -x echo ./some_path
. It gonna show the./some_path
first, then the query results followed.-x, --exec <cmd>
is an option, but looks like it can only used after<pattern>
.For the first situation, I understand that
-x
is special and it is hard to tell if thepath
after it is the arguments of command or the search path. However, do you guys think it should be some warning inside README?For the second situation, can we update the
fd
command's format like:fd [FLAGS/OPTIONS] [<pattern>] [-x/-X][<path>...]
?Thank you!
The text was updated successfully, but these errors were encountered: