Project

General

Profile

Actions

Bug #1588

closed

shell inserts spurious newline after backquote expansion

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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


Files

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

Updated by corecode about 15 years ago

fixed in 5b762f1a64d25a6e2e06009ede925a9c5057dc57

Actions

Also available in: Atom PDF