[gnome-love] autogen.sh clarification



Hello people,

I don't know much about Bash scripting, but recently I started a new git
repo and I decided to do some research before that. I want to prepare a
project template, which can be used to easily start new repos (it will
contain all the files required by GNU, script to auto-generate ChangeLog
and Doxygen/Devhelp files, etc.).

I started writing a simple autogen.sh and then I noticed a comment at
the beginning. In some git modules the comment looks like this:

#!/bin/sh

And in others like this:

#!/bin/sh -e

I tried to find out what the -e option does. I tried sh --help. I tried
man sh. I tried a web search. But I found nothing, as if the option
doesn't exist at all.



So my question is simple? What is the difference between sh and sh -e?

I realize it's just a comment, but if the -e option makes a difference
(I guess it does, otherwise it wouldn't be there in the first place),
I'd like to know what.


Thank you in advance!
fr33domlover




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]