why can't upstart run 'source bin/activate'? why can't upstart run 'source bin/activate'? python python

why can't upstart run 'source bin/activate'?


So I've worked it out, for some reason upstart doesn't like using 'source' so I changed the line from:

source bin/activate

to

. bin/activate

and that works, don't know why though, so would be interested if someone could explain this


source is a bash built-in command but only a posix "special" command.

Upstart runs sh -e when executing the script sections.

sh shell doesn't understand source, only .