# Unexpected nix and ripgrep interaction

**URL:** https://discourse.nixos.org/t/unexpected-nix-and-ripgrep-interaction/24452
**Category:** Help
**Created:** [January 5, 2023, 12:32pm UTC](https://discourse.nixos.org/t/unexpected-nix-and-ripgrep-interaction/24452 "2023-01-05T12:32:45Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![icyrockcom](https://discourse.nixos.org/user_avatar/discourse.nixos.org/icyrockcom/32/7468_2.png) [@icyrockcom](https://discourse.nixos.org/u/icyrockcom)
#### Post date: [January 5, 2023, 3:21pm UTC](https://discourse.nixos.org/t/unexpected-nix-and-ripgrep-interaction/24452/5 "2023-01-05T15:21:24Z")

</div>

Ah OK makes sense - so basically `nix` is outputting some escape sequences to stderr even though it’s piped. Actually, it probably isn’t the escape sequences that are the problem here - the `\r` at the beginning is probably causing issues with `ripgrep`’s output.

Thanks for debugging this. I’ve created [nix CLI outputting ANSI escape sequences to stderr when piped · Issue #7558 · NixOS/nix · GitHub](https://github.com/NixOS/nix/issues/7558)

---

_[View the full topic](https://discourse.nixos.org/t/unexpected-nix-and-ripgrep-interaction/24452)._
