-
-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show currently processed file in -x #963
Comments
I understand. Just a small proposal for |
is |
Yes, personally I'd find it more complicated. + |
This option seems to be requested a lot, given the amount of related discussions:
@tmccombs Multi-exec is a fantastic feature which I'm very excited about, but maybe we should reconsider adding a simple option for this? Proper formatting would be one argument. Accessibility of the feature another. |
Yeah, I'm persuaded by the formatting/color option. |
I would like to second the request for this feature, with a slightly more detailed rationale. When using the In this scenario, I really do not want to add any other Having a simple flag to enable printing would make this common use-case much easier, without presenting the risk of the user accidentally getting the command wrong in the process. I would even go as far as to say that I think this should be the default behaviour — it's important to know what commands are being run on your files. Edit: I see this issue is being tracked more closely in #1042 |
I think we can close this in favor of #1042. Let me know if anyone disagrees. |
Type: Reply 💬 1. Summary
@tmccombs, 2. MCVE2.1. Online demonstrationMy MCVE on CI services:
2.2. Files
#!/bin/bash
#!/bin/Kira Goddess!
2.3. Commands# First command
- fd --extension sh --exec echo ; --exec shellcheck
# Second command
- fd --extension sh --exec echo \; --exec shellcheck 2.4. Behavior2.4.1. First command
First command works for Windows, but doesn’t work for Ubuntu. 2.4.2. Second command
Second command works for Ubuntu, but doesn’t work for Windows. 3. About cross-platform syntaxWhen I read this issue tracker, it seems to me that in most discussions here users and developers discussing the behavior of fd in UNIX shells without considering the Windows command prompt syntax. Users who want cross-platform syntax support may be in the minority here, but we exist. I would like fd to have more cross-platform syntax so that users don’t have to write different commands for different operating systems. Especially for such frequently needed tasks as printing filename. Thanks. |
Type: Reply 💬
@sharkdp, #1042 and #1068 about printing the executed commands, this issue about printing the filenames. I would prefer fd to print filenames rather than the same executed command for all files. If fd had a CLI argument for printing filenames, maybe users won’t be upset. Thanks. |
I'm running a large batch processing job using -x. It'd be nice to display the name of the currently processed file or files (with parallel processing).
I don't know any other way to achieve this. If there is a workaround please let me not.
The text was updated successfully, but these errors were encountered: