Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2009 07:06:34 GMT
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/137657: sh(1): /bin/sh misses unmatched quotes in backticks
Message-ID:  <200908110706.n7B76YDu041939@ref8-amd64.freebsd.org>
Resent-Message-ID: <200908110710.n7B7A3Tv067841@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908110706.n7B76YDu041939>