Hi Dmitriy, > Working with old code of gnulib-tool, I've found a small bug in > func_emit_po_Makevars and same functions. We have a line in every such > function: > > echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!" > > That raises error in bash: > > bash: !": event not found
Here's what I see: $ echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!" bash: !": event not found $ bash -c 'echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!"' ## DO NOT EDIT! GENERATED AUTOMATICALLY! So the difference is between an interactive bash (which interprets '!' specially) and a non-interactive bash (such as when bash is used with option '-c' or to execute a script). You can convince bash to not to '!' interpretation through $ set +H or $ set +o histexpand Found in <http://stackoverflow.com/questions/6016664/bashsingle-quotes-and-double-quotes-and-exclamation-mark>. Bruno
