Comments (3)
Are you sure you're using Unix newlines in your script? Sounds like it's possibly choking on a \r. If you add the typical #!/bin/bash
to top of your script, you'll get the error: line 2: $'\r': command not found, whereas without the shebang, you'll just get the syntax error on the done
line.
These are binaries straight from Ubuntu, so they typically will not support Windows newlines.
from wsl.
@SonGokussj4 if you moved/created the file from Win32, the Linux filesystem likely will have issues with the file. Manipulating files under %APPDATA%\lxss from Win32 is unsupported and will have bizarre side effects. You should copy files there using the Linux environment.
from wsl.
Thank you for your response. It was really that. Sublime set the new lines to [Windows]. I think.
Now whe set to [Unix], it works well in [ST3]
So thank you again :-)
How does the "unix place detachement" works?
When I create shell script and move it into:
/mnt/c/Users/my_user/AppData/Local/lxss/root/ScriptFolder#
-
I can see it in Windows
-
I can see it in bash when i go to:
cd /mnt/c/Users/my_user/AppData/Local/lxss/root/ScriptFolder/
-
I can't see it in bash when i go to
cd ~/ScriptFolder/
from wsl.
Related Issues (20)
- Netsh portproxy snippet unclear when forwarding traffic into WSL 2
- wsl subcommand has been removed. HOT 1
- Documentation not updated for usbipd-win 4.0.0
- Additional info for "No internet access" sections in troubleshooting guide
- Google-chrome fails to install 404 file access HOT 1
- Documentation incorrect for usbipd 4.0.0
- update error HOT 1
- The 'Advanced settings configuration' HOT 1
- ICP-Canister HOT 1
- "Attach a USB device" guide out of date HOT 2
- Attach a USB Device Instructions are outdated and do not work HOT 1
- Read-only file system unable to fix. HOT 1
- Need clarification on filesystems supported by WSL HOT 2
- WSL1/WSL2 comparison table not correct - WSL1 does support IPv6
- Remove the "Debugger for Chrome" resource. It's deprecated HOT 1
- Old usbipd syntax HOT 1
- Update usbipd command HOT 1
- Connect USB devices commands are wrong HOT 1
- WSL and usbipd-win documentation out of date for latest usbipd-win version HOT 1
- Indicate required Linux kernel version for USBIPD 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 wsl.