bin/137657: sh(1): /bin/sh misses unmatched quotes in backticks
Yar Tikhiy
yar at FreeBSD.org
Tue Aug 11 07:10:04 UTC 2009
>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 at 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:
More information about the freebsd-bugs
mailing list