Bug #1588

shell inserts spurious newline after backquote expansion

Added by corecode about 5 years ago. Updated about 5 years ago.

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

0%

Category:-
Target version:-

Description

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?

cheers
simon

[1]
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c6fe0fc88a075bb1c0b8d6dceac7f2c659c8a99

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

History

#1 Updated by corecode about 5 years ago

fixed in 5b762f1a64d25a6e2e06009ede925a9c5057dc57

Also available in: Atom PDF