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

**URL:** <https://forum.codecrafters.io/t/there-s-a-problem-with-a-test-for-build-your-own-shell-backslash-within-single-quotes-le5/3674>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [December 25, 2024, 5:22pm UTC](https://forum.codecrafters.io/t/there-s-a-problem-with-a-test-for-build-your-own-shell-backslash-within-single-quotes-le5/3674 "2024-12-25T17:22:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![R1zwan](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/r1zwan/32/3713_2.png) [@R1zwan](https://forum.codecrafters.io/u/R1zwan)\
**Post date:** [December 25, 2024, 5:22pm UTC](https://forum.codecrafters.io/t/there-s-a-problem-with-a-test-for-build-your-own-shell-backslash-within-single-quotes-le5/3674/1 "2024-12-25T17:22:29Z")

</div>

![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/1/132d35b767577303a945617cf6a85839146af0ef.png)

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

---

<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:** [December 25, 2024, 10:04pm UTC](https://forum.codecrafters.io/t/there-s-a-problem-with-a-test-for-build-your-own-shell-backslash-within-single-quotes-le5/3674/2 "2024-12-25T22:04:18Z")

</div>

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

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/9/917e42856921ff928fd907eb88c107a950d9cf4c.png)

`"/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:

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

```

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/0/00763ad904580c7611655e10766f87cd469d148a.png)

---

<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:** [December 30, 2024, 10:04pm UTC](https://forum.codecrafters.io/t/there-s-a-problem-with-a-test-for-build-your-own-shell-backslash-within-single-quotes-le5/3674/3 "2024-12-30T22:04:45Z")

</div>

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