Skip to content

Difficulty with --cscript #60

Answered by gitbls
dshaw619 asked this question in Q&A
Jan 25, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Nope, really simple. "/bin/bash^M: bad interpreter: No such file or directory" tells me that you edited this file on Windows, and the file has Windows line endings on it rather than Linux line endings. Use dos2unix on Mint to convert the line endings and it will work fine.

There are many ways to fix the line endings. dos2unix on Mint will do it. If you don't like that, a quick search for: convert windows file to linux will give you 88M or so web sites telling you how to do it. 🤣 I personally use EditPad Lite on Windows, and make sure that the file is in Linux format when I save it, or more often than not, I just do all the editing on Linux.

The double slash is a buglet, but doesn't hurt a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dshaw619
Comment options

@dshaw619
Comment options

Answer selected by dshaw619
Comment options

You must be logged in to vote
1 reply
@dshaw619
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants