bug-gnulib
[Top][All Lists]
Advanced

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

Re: Small bug in func_emit* functions


From: Bruno Haible
Subject: Re: Small bug in func_emit* functions
Date: Wed, 01 Aug 2012 11:42:50 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]