mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 00:04:14 -05:00
Due to the amount of code removed by this, it seems that allowing unmatched quotes was a deliberate imitation of System V sh and real ksh. Most other shells do not allow unmatched quotes (e.g. bash, zsh, pdksh, NetBSD /bin/sh, dash). PR: bin/137657
7 lines
187 B
Text
7 lines
187 B
Text
# $FreeBSD$
|
|
|
|
sh -c 'echo `echo .BA"DCODE.`
|
|
echo ".BAD"CODE.' 2>&1 | grep -q BADCODE && exit 1
|
|
echo '`"`' | sh -n 2>/dev/null && exit 1
|
|
echo '`'"'"'`' | sh -n 2>/dev/null && exit 1
|
|
exit 0
|