Comments (4)
@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.
@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 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.
@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)
- Provide a junit 5 config parameter to enable turn off adding stdout and stderr into the junit xml files.
- Intercepting the script as shown in documentation example isn't preserving the variables for "When run source" HOT 2
- does shellspec support csh or tcsh? HOT 1
- "Not found specified shell" in OpenBSD HOT 3
- Acronyms are not defined before use
- STDIN in test is bound to the calling terminal STDIN when Data block not specified HOT 2
- allow comparing stdout/stderr to the contents in a file HOT 2
- Pipping echo command prints to output HOT 2
- yash version 2.54 does not work with shellspec HOT 1
- kcov show no coverage with --execdir
- kcov with /bin/bash or /bin/sh HOT 1
- Command Based Mock - command execution status HOT 2
- Parameters:dynamic from a shell script HOT 1
- No error in execution without coverage report generation, problem in using coverage report generation
- Can local variables of the function under test be modified by the test case simulation? HOT 3
- Nested `source` commands inside scripts under testing
- Unit tests for Inner Function without calling the outer function HOT 1
- fails when expected success HOT 1
- Typo in the README.md, see "Intercepting" sample HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shellspec.