dundalek / closh

Bash-like shell based on Clojure
Eclipse Public License 1.0
1.62k stars 66 forks source link

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

Open jeroenvandijk opened 5 years ago

jeroenvandijk commented 5 years ago

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