I dont know
I dont know
CC#
Created by I dont know on 5/29/2025 in #help
✅ Need help implementing support for quoting with single quotes
Hello, I'm currently undertaking the "Build your own Shell" challenge on CodeCrafters using C#. My current task is to "Implement support for quoting with single quotes.". I have tried a few things, but have so far been unsuccessful. Here are the instructions for the task: https://pastebin.com/QEwfKAcB Here is my first attempt, along with the test it failed: https://pastebin.com/z4FkSmkQ So then, I fiddled with it a bit, but couldn't get it to work, so I told ChatGPT what was going on, which gave me this code to define parts, which passes the previous test, but fails a different one: https://pastebin.com/VTpwBHZL I don't believe this is caused by my code for running executable files, as this does work, so I believe the problem lies within the above code that ChatGPT gave me. As a result, I showed ChatGPT the issue, but it just gave me some code similar to my first attempt, which, again, didn't work. I could no longer be bothered using ChatGPT as it was just going around in circles, so I thought it would be better to get some help from real human beings. I apologise for the lengthy message, but I hope someone can help. Thanks in advance!
15 replies