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

ls with output redirection writes ansi escape sequences to destination file #127

Closed
galli-a opened this issue Jan 29, 2014 · 1 comment
Closed

Comments

@galli-a
Copy link

galli-a commented Jan 29, 2014

As the title says. When I use ls > file_list.txt the resulting file contains all the ANSI escape sequences used to display the colored file list.
Not sure where the issue is, though: cmder itsel, conemu, or something else entirely.

@samvasko
Copy link
Contributor

in /config/aliases there is a alias that will run the colored version for you every time.
So you have 3 possibilities:

  1. Remove the alias
  2. Run ls --color=never > file_list.txt that will overwrite the thing
  3. Do the good ol' dir /b > file_list.txt

@galli-a galli-a closed this as completed Jan 30, 2014
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