There’s a problem with a test for Build your own shell/Backslash within single quotes #le5

error:
cat: can’t open ‘/tmp/foo/f 64’: No such file or directory
The path is correctly parsed.

Hi @R1zwan, the test cases are a bit tricky for this stage:

"/tmp/foo/'f 64'" will be evaluated to /tmp/foo/'f 64' instead of /tmp/foo/f 64. Note that the single quotes are part of the file name.


You verify this by running these commands:

mkdir /tmp/foo
touch "/tmp/foo/'f 64'"
realpath "/tmp/foo/'f 64'"

1 Like

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