# \[Shell\]\[Python\]\[JV1\] Problem on the ls test

**URL:** <https://forum.codecrafters.io/t/shell-python-jv1-problem-on-the-ls-test/15461>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [October 29, 2025, 2:04am UTC](https://forum.codecrafters.io/t/shell-python-jv1-problem-on-the-ls-test/15461 "2025-10-29T02:04:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvivallos](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/jvivallos/32/9282_2.png) [@jvivallos](https://forum.codecrafters.io/u/jvivallos)\
**Post date:** [October 29, 2025, 2:04am UTC](https://forum.codecrafters.io/t/shell-python-jv1-problem-on-the-ls-test/15461/1 "2025-10-29T02:04:12Z")

</div>

I’m stuck on Stage Redirect stdout #JV1

I have the unfortunate error of it works on my machine.

Here are my logs:

```auto
./your_program.sh
$ ls -1 /tmp/qux > /tmp/foo/bar.md
$ ls /tmp/foo/bar.md
/tmp/foo/bar.md
$ exit
$ exit 0

```

I had to previously create the qux and foo folder for it to work though.

I’ve uploaded the code to the repo [GitHub - jvivallos/codecrafters-shell-python](https://github.com/jvivallos/codecrafters-shell-python)

Thanks in advance

---

<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:** [October 29, 2025, 5:23am UTC](https://forum.codecrafters.io/t/shell-python-jv1-problem-on-the-ls-test/15461/4 "2025-10-29T05:23:52Z")

</div>

Hey @jvivallos, looks like the current code isn’t actually working.

You can verify by printing the contents of the redirected file:

```auto
./your_program.sh
$ ls -1 /tmp/qux > /tmp/foo/bar.md
$ cat /tmp/foo/bar.md
[check the output]

```

Let me know if you’d like any further clarification!

---

<div class="post-metadata">

**Author:** ![jvivallos](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/jvivallos/32/9282_2.png) [@jvivallos](https://forum.codecrafters.io/u/jvivallos)\
**Post date:** [November 2, 2025, 2:49am UTC](https://forum.codecrafters.io/t/shell-python-jv1-problem-on-the-ls-test/15461/6 "2025-11-02T02:49:39Z")

</div>

Thanks for the help. I was including things I shouldn’t have. Thanks again

---

<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:** [November 7, 2025, 2:50am UTC](https://forum.codecrafters.io/t/shell-python-jv1-problem-on-the-ls-test/15461/7 "2025-11-07T02:50:23Z")

</div>

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