Bug #1588

shell inserts spurious newline after backquote expansion

Added by corecode almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


I came across a very strange sh bug today.

The attachment is a reduced case (original a configure script). If you
run it, sh will create a file "o". The bug is that sh will insert a
newline where it should not appear.

I tracked it down to commit 0c6fe0fc88 [1], but I am not convinced that
it actually introduced the bug. If you change MINSIZE to any other
value, the bug at hand does not show anymore. That's why I think that
this commit simply uncovered an existing bug.

Anybody have some clue what is going on?



strange-newline.sh Magnifier (2.23 KB) corecode, 10/25/2009 09:22 PM


#1 Updated by corecode almost 6 years ago

fixed in 5b762f1a64d25a6e2e06009ede925a9c5057dc57

Also available in: Atom PDF