# \#lc6 Failing, not able to replicate the error locally

**URL:** <https://forum.codecrafters.io/t/lc6-failing-not-able-to-replicate-the-error-locally/16192>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [July 1, 2026, 10:34am UTC](https://forum.codecrafters.io/t/lc6-failing-not-able-to-replicate-the-error-locally/16192 "2026-07-01T10:34:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gautam1608](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/gautam1608/32/27102_2.png) [@Gautam1608](https://forum.codecrafters.io/u/Gautam1608)\
**Post date:** [July 1, 2026, 10:34am UTC](https://forum.codecrafters.io/t/lc6-failing-not-able-to-replicate-the-error-locally/16192/1 "2026-07-01T10:34:25Z")

</div>

I’m stuck on Stage #lc6

Latest Code: [Gautam-Shell/app/main.py at main · Gautam1608/Gautam-Shell · GitHub](https://github.com/Gautam1608/Gautam-Shell/blob/main/app/main.py)

Code Submit output:

```auto
[tester::#LC6] Running tests for Stage #LC6 (Filename Completion - Directory completion)
[tester::#LC6] [working_dir] - cow/
[tester::#LC6] [working_dir] - fox/ (empty)
[tester::#LC6] Running ./your_program.sh
[tester::#LC6] ✓ Received prompt ($ )
[tester::#LC6] Typed "du" followed by a <SPACE>
[tester::#LC6] ✓ Prompt line matches "$ du "
[tester::#LC6] Pressed "<TAB>" (expecting autocomplete to "du cow/")
[tester::#LC6] ✓ Prompt line matches "$ du cow/"
[tester::#LC6] Pressed "<TAB>" (expecting autocomplete to "du cow/fox/")
[your-program] $ du cow/cow/
[tester::#LC6] ^ Line does not match expected value.
[tester::#LC6] Expected: "$ du cow/fox/"
[tester::#LC6] Received: "$ du cow/cow/"
[tester::#LC6] Test failed

```

Tried the same locally and its working fine. Am not able to figure out why its auto completes to cow/cow/

Thanks

---

<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:** [July 2, 2026, 12:48am UTC](https://forum.codecrafters.io/t/lc6-failing-not-able-to-replicate-the-error-locally/16192/4 "2026-07-02T00:48:37Z")

</div>

Hey @Gautam1608, the bug occurs because readline by default treats `/` as a word delimiter. You’ll need to override that behavior by calling `readline.set_completer_delims()` with a string that excludes `/`, for example:

```auto
readline.set_completer_delims(' \t\n')

```

And then adjust the options here:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/a/e/ae0c14d2ac535b8a6461a10802ed8264575155fc.png)

---

<div class="post-metadata">

**Author:** ![Gautam1608](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/gautam1608/32/27102_2.png) [@Gautam1608](https://forum.codecrafters.io/u/Gautam1608)\
**Post date:** [July 2, 2026, 4:38am UTC](https://forum.codecrafters.io/t/lc6-failing-not-able-to-replicate-the-error-locally/16192/6 "2026-07-02T04:38:28Z")

</div>

Yup this worked, Its a bit confusing as it seems to be dependent on which shell I am using to run python itself.

I know you have provided the link to bash in the challenge but I thought git bash would be similar to bash, apparently not.

Removed the prefix, I usually see it added in other shells but not in bash I guess.

Either way, thanks for the solution.

---

<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:** [July 7, 2026, 4:38am UTC](https://forum.codecrafters.io/t/lc6-failing-not-able-to-replicate-the-error-locally/16192/7 "2026-07-07T04:38:31Z")

</div>

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