On Thu, 14 Nov 2013 08:18:56 -0500 lingfei ouyang <oylf1...@gmail.com> wrote:
[...] > > The problem is that by (stupid) default it's not an error in a POSIX > > shell to attempt to expand a parameter which does not exist. > > I mean, if you have a script myscript.sh reading [...] > Thanks a lot Konstantin for the information, will doing research on > this. Note that you can make the shell die on trying to expand a nonexisting variable by changing its error mode by executing the set -u builtin command. I'd also recommend to insert set -e -u in your scripts to make the shell also die upon executing commands that fail instead of chugging away happily. Shell programming with these settings active requires certain discipline but it's actually a good thing and helps debugging errors like the yours. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.