Code Monkey home page Code Monkey logo

Comments (7)

lfaraone avatar lfaraone commented on July 22, 2024

These scripts require /bin/bash, but your local environment appears to be forcing usage of /bin/sh.

from zulip.

wwarlock avatar wwarlock commented on July 22, 2024

Emmm, I'm sorry but these scripts are located inside the Vagrant VM (which runs inside VirtualBox), so that issue is a problem of Vagrant, and not of mine machine.

from zulip.

wwarlock avatar wwarlock commented on July 22, 2024

Here my bash environment inside VM

(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:~$ echo $BASH
/bin/bash
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:~$ echo $SHELL
/bin/bash

And in the Cygwin

@00:11:40 wwarlock@Pc-2 zulip git:(master)$ echo $BASH
/usr/bin/bash
@00:11:48 wwarlock@Pc-2 zulip git:(master)$ echo $SHELL
/bin/bash

What else I must to fix to force use of /bin/bash inside VM ?

from zulip.

andersk avatar andersk commented on July 22, 2024

I believe your shell is fine and your problems are actually due to Windows line endings in your Git clone. What is the output of git config --list | grep crlf?

Example to reproduce this effect:

$ cat foo.sh
#!/bin/sh -e
echo hi
$ ./foo.sh
hi
$ unix2dos foo.sh
unix2dos: converting file foo.sh to DOS format ...
$ ./foo.sh
/bin/sh: 0: Illegal option -

from zulip.

wwarlock avatar wwarlock commented on July 22, 2024
@00:24:36 wwarlock@Pc-2 zulip git:(master)$ git config --list | grep crlf
core.autocrlf=true

Ok, I try to switch off line endings conversion and clone the zulip repo once more

from zulip.

wwarlock avatar wwarlock commented on July 22, 2024

Please add that information to the README.

from zulip.

ydsdsa avatar ydsdsa commented on July 22, 2024

git clone https://github.com/zulip/zulip.git -c core.autocrlf=false worked for me on Windows.

from zulip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.