Hello coder, any one can help

[compile] Moved ./.codecrafters/run.sh → ./your_program.sh

[compile] Compilation successful.

[tester::#IP1] Running tests for Stage #IP1 (Run a program)

[tester::#IP1] [setup] export PATH=/tmp/bee:$PATH

[tester::#IP1] [setup] Available executables:

[tester::#IP1] [setup] - custom_exe_3511

[tester::#IP1] [setup] - custom_exe_3427

[tester::#IP1] Running ./your_program.sh

[your-program] $ custom_exe_3511 Alice

[your-program] Program was passed 2 args (including program name).

[your-program] Arg #0 (program name): custom_exe_3511

[your-program] Arg #1: Alice

[your-program] Program Signature: 5636523044

[tester::#IP1] ✓ Received expected response

[your-program] $ custom_exe_3427 James David

[your-program] Program was passed 3 args (including program name).

[your-program] Arg #0 (program name): custom_exe_3427

[your-program] Arg #1: James

[your-program] Arg #2: David

[your-program] Program Signature: 4346796373

[tester::#IP1] ✓ Received expected response

[your-program] $

[tester::#IP1] Test passed.

[tester::#MG5] Running tests for Stage #MG5 (Locate executable files)

[tester::#MG5] [setup] export PATH=/tmp/rat:$PATH

[tester::#MG5] [setup] export PATH=/tmp/fox:$PATH

[tester::#MG5] [setup] export PATH=/tmp/pig:$PATH

[tester::#MG5] [setup] PATH is now: /tmp/pig:/tmp/fox:/tmp/rat:…

[tester::#MG5] [setup] Available executables:

[tester::#MG5] [setup] - my_exe

[tester::#MG5] Running ./your_program.sh

[your-program] $ type cat

[your-program] cat is /bin/cat

[tester::#MG5] ✓ Received expected response

[your-program] $ type cp

[your-program] cp is /bin/cp

[tester::#MG5] ✓ Received expected response

[your-program] $ type mkdir

[your-program] mkdir is /bin/mkdir

[tester::#MG5] ✓ Received expected response

[your-program] $ type my_exe

[your-program] my_exe is /tmp/pig/my_exe

[tester::#MG5] ^ Line does not match expected value.

[tester::#MG5] Expected: “my_exe is /tmp/fox/my_exe”

[tester::#MG5] Received: “my_exe is /tmp/pig/my_exe”

[your-program] $

[tester::#MG5] Assertion failed.

[tester::#MG5] Test failed

Hey @RUGERO-HACKER1, could you double-check if your code implements the following logic?

Note that there are multiple files with the same name in different locations, but not all of them are executable. Only the first executable should be picked up.

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

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