Date: Fri, 8 Jan 2016 01:12:27 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r293404 - user/pho/stress2 Message-ID: <201601080112.u081CRA3025213@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Fri Jan 8 01:12:27 2016 New Revision: 293404 URL: https://svnweb.freebsd.org/changeset/base/293404 Log: In mycc() make $file local, to avoid overwriting of the global variable, that could be used in scripts. misc/sendfile5.sh uses it. Modified: user/pho/stress2/default.cfg Modified: user/pho/stress2/default.cfg ============================================================================== --- user/pho/stress2/default.cfg Fri Jan 8 00:56:41 2016 (r293403) +++ user/pho/stress2/default.cfg Fri Jan 8 01:12:27 2016 (r293404) @@ -102,6 +102,8 @@ CC=${CC:-cc} top=`dirname $(pwd)` # cwd for the all.sh script STRESS2BIN=${STRESS2BIN:-$top/bin} mycc () { # "-o" must be first argument + local file; + [ "$1" = "-o" ] && file=`basename $2` if [ "$BMODE" = "1" ]; then $CC $@ || return
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601080112.u081CRA3025213>