Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy pasting github's clone commands gives issues (multi-line support) #128

Open
jeroenvandijk opened this issue Apr 10, 2019 · 0 comments

Comments

@jeroenvandijk
Copy link
Contributor

Not sure if it is the multiline or not, but when you try to execute the example commands of Github when creating a repo this fails in Closh:

echo "# adgoji-shell-scripts" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:millmobile/adgoji-shell-scripts.git
git push -u origin master

=>

echo "# adgoji-shell-scripts" >> README.md
                   #_=> git init
                   #_=> git add README.md
                   #_=> git commit -m "first commit"
                   #_=> git remote add origin git@github.com:millmobile/adgoji-shell-scripts.git
                   #_=> git push -u origin master
Reinitialized existing Git repository in /Users/jeroen/Projects/AdGoji/adgoji-shell-scripts/.git/
fatal: pathspec 'README.md' did not match any files
On branch master

Initial commit

nothing to commit
fatal: remote origin already exists.
error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:millmobile/adgoji-shell-scripts.git'

Hypothesis: Closh doesn't use the \newline to terminate the command

@dundalek dundalek added the bug label Jul 2, 2019
@dundalek dundalek changed the title Copy pasting github's clone commands gives issues Copy pasting github's clone commands gives issues (multi-line support) Aug 20, 2019
@dundalek dundalek added the jvm label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants