git-annex/doc/bugs/Detection_assumes_that_shell_is_bash.mdwn

25 lines
1,003 B
Text
Raw Normal View History

2012-10-29 12:43:17 +00:00
###What steps will reproduce the problem?###
2012-10-29 12:40:50 +00:00
"Adding a remote server using ssh" and try to add a remote server where the account has ex. tcsh as loginshell
2012-10-29 12:43:17 +00:00
###What is the expected output? What do you see instead?###
2012-10-29 12:40:50 +00:00
To discover remote programs, it dumps away some born-shell code like:
"echo git-annex-probe loggedin;if which git-annex-shell; then echo git-annex-probe git-annex-shell; fi;if which rsync; then echo git-annex-probe rsync; fi;if which ~/.ssh/git-annex-shell; then echo git-annex-probe ~/.ssh/git-annex-shell; fi"
just wrap it with a bash -c '..' and you know that its interpreted by bash.
2012-10-29 12:43:17 +00:00
###What version of git-annex are you using? On what operating system?###
2012-10-29 12:40:50 +00:00
git-annex version: 3.20121017
2012-10-29 12:43:17 +00:00
###Please provide any additional information below.###
Not everyone has bash as there login-shell.
2012-11-13 18:03:26 +00:00
[[!tag /design/assistant]]
> [[done]]; assistant now uses sh -c "sane shell stuff here" to work
> around csh. (There are systems without bash, but probably fewer without sh)
> --[[Joey]]