Giter VIP home page Giter VIP logo

Comments (4)

smatberg-gpe avatar smatberg-gpe commented on May 24, 2024 1

@smatberg-gpe here’s a stack overflow thread to give you an example - https://stackoverflow.com/questions/19858176/how-do-i-escape-spaces-in-path-for-scp-copy-in-linux

Simply speaking, in shell scripting, when you have special characters (in your case spaces) you need to escape them using \ to let shell know that it is actually a special character, not a next argument. Therefore you should write down your repo path as my\ repo

Yes, I know about escaping characters (thank you though for your patience). But in the command "shellspec --init" there is no path and therefore nothing to escape. Shellspec seems to get the current path by other means and does not handle its whitespaces correctly when on WSL2.
As I said, the same thing works just fine on native linux.

from shellspec.

ivopieniak avatar ivopieniak commented on May 24, 2024

@smatberg-gpe I believe, you need to escape white space in your Unix path. To make your life easier, I would recommend using underscores in the file names.

from shellspec.

smatberg-gpe avatar smatberg-gpe commented on May 24, 2024

@smatberg-gpe I believe, you need to escape white space in your Unix path. To make your life easier, I would recommend using underscores in the file names.

Thank you for your kind reply.
However, I'm not quite sure what you mean... When stating "shellspec --init" there is nothing to escape. The "cd" command before works just fine.
Of course life is easier withouth whitespaces in path names, however that is not always something we can control personally. But as I said, for now it is exactly what I am doing.

from shellspec.

ivopieniak avatar ivopieniak commented on May 24, 2024

@smatberg-gpe here’s a stack overflow thread to give you an example - https://stackoverflow.com/questions/19858176/how-do-i-escape-spaces-in-path-for-scp-copy-in-linux

Simply speaking, in shell scripting, when you have special characters (in your case spaces) you need to escape them using \ to let shell know that it is actually a special character, not a next argument. Therefore you should write down your repo path as my\ repo

from shellspec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.