[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash inserts semicolon into history when using here-document
From: |
Robert Citek |
Subject: |
bash inserts semicolon into history when using here-document |
Date: |
Mon, 4 Oct 2010 21:26:20 -0300 |
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include
-I../bash/lib -g -O2 -Wall
uname output: Linux lucid-unr 2.6.32-25-generic #44-Ubuntu SMP Fri Sep
17 20:26:08 UTC 2010 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu
Bash Version: 4.1
Patch Level: 5
Release Status: release
Description:
When using a here-document at the command line, bash inserts a
semicolon into the history.
Repeat-By:
I type the following at a bash prompt:
$ { cat <<eof
eof
}
then press up-arrow. I see this:
$ { cat <<eof
eof
; }
If I press Enter, I get an error:
-su: syntax error near unexpected token `;'
Bash has inserted a semi-colon before the "}".
- bash inserts semicolon into history when using here-document,
Robert Citek <=