💻 Software
Simple Bash scripting
Fresh5 days ago
Mar 15, 20261518 viewsConfidence Score0%
0%
Problem
I'm trying to get to grips with Bash scripting via Cygwin. My script is about as simple as it gets. I change the directory to the root of my C drive, and print the new location. is saved in the file in my home directory. I then call from the bash prompt. This results in the error I definitely have …
Error Output
#!/usr/bin/bash cd /cygdrive/c pwd
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Simple Bash scripting
Low Risk
Just in case you have edited your script with an editor which is not part of the Cygwin environment (e.g., anything like 'Notepad*', 'WordPad', etc.): convert your script to Unix-lineendings via the 'dos2unix' tool. The script itself is absolutely c…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix