Comment for escape() function.

MFC after:	3 days
X-MFC-to:	stable/10
This commit is contained in:
Devin Teske 2015-09-01 21:48:22 +00:00
parent 09f28e1bf1
commit 7abb307c50

View File

@ -195,6 +195,14 @@ jail_depend()
cat $BSDCFG_SHARE/sysrc.subr
}
# escape $string [$var_to_set]
#
# Escape $string contents so that the contents can be properly encapsulated in
# single-quotes (making for safe evaluation).
#
# NB: See `bsdconfig includes -dF escape' for relevant information/discussion.
# NB: Abridged version of `f_shell_escape()' from bsdconfig(8) `strings.subr'.
#
escape()
{
local __start="$1" __var_to_set="$2" __string=