From owner-freebsd-bugs Mon Oct 25 17:20: 3 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id C59561521A for ; Mon, 25 Oct 1999 17:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA83177; Mon, 25 Oct 1999 17:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id E3BF914C01; Mon, 25 Oct 1999 17:13:53 -0700 (PDT) Message-Id: <19991026001353.E3BF914C01@hub.freebsd.org> Date: Mon, 25 Oct 1999 17:13:53 -0700 (PDT) From: kei@nanet.co.jp To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/14527: sh here-documents failure Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14527 >Category: bin >Synopsis: sh here-documents failure >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 25 17:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Katsuyuki Maeda >Release: FreeBSD 3.3-RELEASE >Organization: Nagasaki Network Service Co,.Ltd. >Environment: FreeBSD us01.nanet.co.jp 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999 jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC i386 >Description: sh here-documents fails when using backquotes and up to 3 pipes. >How-To-Repeat: good.sh ------->------->------->------->------->-------> #!/bin/sh cat <<_EOF_ `echo abc | cat | cat` _EOF_ ------->------->------->------->------->-------> %./good.sh abc is OK. fail.sh ------->------->------->------->------->-------> #!/bin/sh cat <<_EOF_ `echo abc | cat | cat | cat` _EOF_ ------->------->------->------->------->-------> %./fail.sh cat: stdin: Bad file descriptor >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message