# \[shell\]\[python\] Ip1

**URL:** <https://forum.codecrafters.io/t/shell-python-ip1/12651>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [June 26, 2025, 7:32am UTC](https://forum.codecrafters.io/t/shell-python-ip1/12651 "2025-06-26T07:32:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeviraty](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/zeviraty/32/13507_2.png) [@Zeviraty](https://forum.codecrafters.io/u/Zeviraty)\
**Post date:** [June 26, 2025, 7:32am UTC](https://forum.codecrafters.io/t/shell-python-ip1/12651/1 "2025-06-26T07:32:31Z")

</div>

```auto
[tester::#IP1] Running tests for Stage #IP1 (Run a program)
[tester::#IP1] [setup] export PATH=/tmp/quz:$PATH
[tester::#IP1] [setup] Available executables:
[tester::#IP1] [setup] - custom_exe_4643
[tester::#IP1] [setup] - custom_exe_2725
[tester::#IP1] Running ./your_program.sh
[your-program] $ custom_exe_4643 Alice Maria
[your-program] Program was passed 3 args (including program name).
[your-program] Arg #0 (program name): /tmp/quz/custom_exe_4643
[tester::#IP1] ^ Line does not match expected value.
[tester::#IP1] Expected: "Arg #0 (program name): custom_exe_4643"
[tester::#IP1] Received: "Arg #0 (program name): /tmp/quz/custom_exe_4643"
[your-program] Arg #1: Alice
[your-program] Arg #2: Maria
[your-program] Program Signature: 2091428568
[your-program] $
[tester::#IP1] Assertion failed.
[tester::#IP1] Test failed (try setting 'debug: true' in your codecrafters.yml to see more details)

```

```auto
os.system(f"{os.path.join(cmds[cmd[0]],cmd[0])} {' '.join(cmd[1:])}")

```

same happens with subprocess.run

---

<div class="post-metadata">

**Author:** ![Zeviraty](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/zeviraty/32/13507_2.png) [@Zeviraty](https://forum.codecrafters.io/u/Zeviraty)\
**Post date:** [June 26, 2025, 10:03am UTC](https://forum.codecrafters.io/t/shell-python-ip1/12651/4 "2025-06-26T10:03:00Z")

</div>

I fixed it by passing the command instead of the full path i hope this helps other people!

---

<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 1, 2025, 10:03am UTC](https://forum.codecrafters.io/t/shell-python-ip1/12651/6 "2025-07-01T10:03:15Z")

</div>

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