From owner-freebsd-hackers Fri Sep 21 21:12:58 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from heaven.gigo.com (gigo.com [207.173.11.186]) by hub.freebsd.org (Postfix) with ESMTP id 831FF37B412 for ; Fri, 21 Sep 2001 21:12:56 -0700 (PDT) Received: from 200.181.48.39 (unknown [200.181.48.39]) by heaven.gigo.com (Postfix) with ESMTP id 66F3AB85E for ; Fri, 21 Sep 2001 21:12:26 -0700 (PDT) Received: (qmail 44644 invoked by uid 1001); 22 Sep 2001 04:13:24 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Sat, 22 Sep 2001 01:13:02 -0300 To: freebsd-hackers@freebsd.org Subject: bug in shell `` expansion code? Message-ID: <20010922011302.A44620@exxodus.fedaykin.here> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, While working on a make .mk code, I and Chris Wasser (TDF on IRC) came across an interesting behavior: sh -c 'TDF="echo a && echo b";for i in `${TDF}`; do echo "i:$i"; done' This should return: i:a i:b instead, it returns: i:a i:&& i:echo i:b If this is not a bug, how do we get it working? Regards, -- Mario S F Ferreira - UnB - Brazil - "I guess this is a signature." lioux at ( freebsd dot org | linf dot unb dot br ) flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message