Skip to content
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

Detect non-interactive terminal #11

Closed
sharkdp opened this issue May 12, 2017 · 2 comments
Closed

Detect non-interactive terminal #11

sharkdp opened this issue May 12, 2017 · 2 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented May 12, 2017

In order to pipe the output to other programs (or write to files)

@BatmanAoD
Copy link

@sharkdp It appears that this doesn't actually skip output coloring:

> fd -I <myLib>.dll  | xargs ls -lt 
ls: cannot access ''$'\033''[1;34m <..... etc .... > .....dll: No such file or directory

@sharkdp
Copy link
Owner Author

sharkdp commented Jun 15, 2017

Is this on Windows?
Which fd version are you using?

It work for me (Linux):

> fd -I '\.rs$' | xargs ls -lt
-rw-r--r-- 1 shark shark 11654 Jun 12 22:07 src/main.rs
-rw-r--r-- 1 shark shark  7261 Jun  5 21:51 src/lscolors/mod.rs
-rw-r--r-- 1 shark shark  1545 Jun  5 16:18 src/fshelper/mod.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants