From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 11 07:10:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC2D2106566B for ; Tue, 11 Aug 2009 07:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9BF618FC35 for ; Tue, 11 Aug 2009 07:10:03 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7B7A31N067842 for ; Tue, 11 Aug 2009 07:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7B7A3Tv067841; Tue, 11 Aug 2009 07:10:03 GMT (envelope-from gnats) Resent-Date: Tue, 11 Aug 2009 07:10:03 GMT Resent-Message-Id: <200908110710.n7B7A3Tv067841@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yar Tikhiy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D4911065694 for ; Tue, 11 Aug 2009 07:06:34 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from ref8-amd64.freebsd.org (ref8-amd64.freebsd.org [IPv6:2001:4f8:fff6::5f]) by mx1.freebsd.org (Postfix) with ESMTP id 5D12E8FC1F for ; Tue, 11 Aug 2009 07:06:34 +0000 (UTC) Received: from ref8-amd64.freebsd.org (localhost [127.0.0.1]) by ref8-amd64.freebsd.org (8.14.3/8.14.3) with ESMTP id n7B76Yhr041940 for ; Tue, 11 Aug 2009 07:06:34 GMT (envelope-from yar@ref8-amd64.freebsd.org) Received: (from yar@localhost) by ref8-amd64.freebsd.org (8.14.3/8.14.3/Submit) id n7B76YDu041939; Tue, 11 Aug 2009 07:06:34 GMT (envelope-from yar) Message-Id: <200908110706.n7B76YDu041939@ref8-amd64.freebsd.org> Date: Tue, 11 Aug 2009 07:06:34 GMT From: Yar Tikhiy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/137657: sh(1): /bin/sh misses unmatched quotes in backticks X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2009 07:10:04 -0000 >Number: 137657 >Category: bin >Synopsis: sh(1): /bin/sh misses unmatched quotes in backticks >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 11 07:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yar Tikhiy >Release: FreeBSD 8.0-BETA2 amd64 >Organization: BarNet >Environment: System: FreeBSD ref8-amd64.freebsd.org 8.0-BETA2 FreeBSD 8.0-BETA2 #11 r195838: Fri Jul 24 09:52:42 UTC 2009 simon@ref8-amd64.freebsd.org:/scratch/src/sys/amd64/compile/REF8-AMD64 amd64 >Description: /bin/sh misses an unmatched quote in backticks. The closing backtick will implicitly close the open quote as well. This can lead to latent bugs in shell scripts. >How-To-Repeat: $ echo `echo '123` 123 $ echo `echo "123` 123 >Fix: >Release-Note: >Audit-Trail: >Unformatted: