Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

 pwd: /out/package
ppid: 3420
   1: WRITELN echo 321 > 1.txt
   2: WRITELN cat <
   3: WRITELN 1.txt
   4: WRITELN ls
   5: WRITELN exit
exit: 0

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

mumsh $ mumsh $ /in/main.c:108:36: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/fcntl.h:157:56: note: nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:108:36 in 
cat: -: Bad file descriptor
cat: closing standard input: Bad file descriptor
mumsh $ Error: No such file or directory
mumsh $ 1.txt
driver
mumsh
mumsh_memory_check
mumsh $ exit

JOJ Answer

mumsh $ mumsh $ > 321
mumsh $ 1.txt
driver
mumsh
mumsh_memory_check
mumsh $ exit