# More accurate run command for the challenge

**URL:** <https://forum.codecrafters.io/t/more-accurate-run-command-for-the-challenge/15306>\
**Category:** Challenges\
**Tags:** challenge:grep\
**Created:** [September 17, 2025, 3:42pm UTC](https://forum.codecrafters.io/t/more-accurate-run-command-for-the-challenge/15306 "2025-09-17T15:42:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit-sutradhar-dev](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohit-sutradhar-dev/32/17388_2.png) [@rohit-sutradhar-dev](https://forum.codecrafters.io/u/rohit-sutradhar-dev)\
**Post date:** [September 17, 2025, 3:42pm UTC](https://forum.codecrafters.io/t/more-accurate-run-command-for-the-challenge/15306/1 "2025-09-17T15:42:54Z")

</div>

This is not regarding a specific stage.

The command `echo -n “<input-string>” | ./your_program.sh -E “\d”` does not work for some inputs like $$ or $?, because these are special characters and are being interpreted and hence echoed differently. Wondering if the command should be replaced with single quotes in the challenge (or perhaps this could be an additional stage where the user debugs this on their own? :p).

Just wanted to point this out in case this was unintended.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [September 17, 2025, 11:00pm UTC](https://forum.codecrafters.io/t/more-accurate-run-command-for-the-challenge/15306/4 "2025-09-17T23:00:07Z")

</div>

Hey @rohit-sutradhar-dev, great catch!

We’re addressing the issue in [this PR](https://github.com/codecrafters-io/grep-tester/pull/60). Let us know if you spot anything else.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [September 23, 2025, 10:30pm UTC](https://forum.codecrafters.io/t/more-accurate-run-command-for-the-challenge/15306/6 "2025-09-23T22:30:08Z")

</div>

Closed on September 23, 2025, 10:30pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
