Re: Bug: shell history loses lines beginning with # in a here-document

2011-10-01 Thread Chet Ramey
On 9/30/11 3:40 PM, Jonathan Wakely wrote: > Run these command: > > $ gcc -x c - < #include > int main() { printf("hi\n"); } > EOT > $ ./a.out > hi > > now use the up cursor (or "fc -2" or any equivalent) to return to the > gcc command, it has been > mangled to: > > gcc -x c - < EOT > > Th

Bug: shell history loses lines beginning with # in a here-document

2011-09-30 Thread Jonathan Wakely
[I've just created a bug report at Savannah, but looking at the Bash page on gnu.org I realised it should have ben sent here rather than ] Run these command: $ gcc -x c - <  int main() { printf("hi\n"); }  EOT $ ./a.out hi now use the up cursor (or "fc -2