On Mon, 15 Jun 2015 07:47:41 +0200, Janis Papanagnou wrote:
> I suppose you are maybe still using bash and are wondering about errors
> or strange output you see?
Yes.
> - Change your shell, use ksh,
I'll give it a try.
> if you don't
> want your quoted literal "!" in text be interpreted, or change all your
> programs to use single quotes in strings where you intend to use this
> normal character "!" in your texts. (Or read the manual; there might be
> an option to disable this IMO broken default behaviour in bash.)
See the strange output for my case:
werner@debian:~$ echo "!"
bash: !: event not found
werner@debian:~$ echo "!!"
echo "gedit "
gedit
werner@debian:~$ echo "!!!"
bash: !": event not found
werner@debian:~$ echo "!!!!"
echo "echo "gedit "echo "gedit ""
echo gedit echo gedit
werner@debian:~$