=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== mksh-59c/Build.sh-87-genopt_soptc() { mksh-59c/Build.sh:88: optc=`echo "$line" | sed 's/^[<>]\(.\).*$/\1/'` mksh-59c/Build.sh-89- test x"$optc" = x'|' && return mksh-59c/Build.sh:90: optclo=`echo "$optc" | tr $allu $alll` mksh-59c/Build.sh-91- if test x"$optc" = x"$optclo"; then ############################################## mksh-59c/Build.sh-95- fi mksh-59c/Build.sh:96: sym=`echo "$line" | sed 's/^[<>]/|/'` mksh-59c/Build.sh-97- o_str=$o_str$nl"<$optclo$islo$sym" ############################################## mksh-59c/Build.sh-105- x*' '*) mksh-59c/Build.sh:106: cond=`echo "$cond" | sed 's/^ //'` mksh-59c/Build.sh-107- cond="#if $cond" ############################################## mksh-59c/Build.sh-109- x'!'*) mksh-59c/Build.sh:110: cond=`echo "$cond" | sed 's/^!//'` mksh-59c/Build.sh-111- cond="#ifndef $cond" ############################################## mksh-59c/Build.sh-121- test -f "$srcfile" || genopt_die Source file \$srcfile not set. mksh-59c/Build.sh:122: bn=`basename "$srcfile" | sed 's/.opt$//'` mksh-59c/Build.sh-123- o_hdr='/* +++ GENERATED FILE +++ DO NOT EDIT +++ */' ############################################## mksh-59c/Build.sh-135- # end of input mksh-59c/Build.sh:136: o_sym=`echo "$line" | sed 's/^.//'` mksh-59c/Build.sh-137- o_gen=$o_gen$nl"#undef F0" ############################################## mksh-59c/Build.sh-156- # start of a definition block mksh-59c/Build.sh:157: sym=`echo "$line" | sed 's/^@//'` mksh-59c/Build.sh-158- if test $state = 0; then ############################################## mksh-59c/Build.sh-176- genopt_soptc mksh-59c/Build.sh:177: cond=`echo "$line" | sed 's/^[^|]*|//'` mksh-59c/Build.sh-178- genopt_scond ############################################## mksh-59c/Build.sh-257-fx= mksh-59c/Build.sh:258:me=`basename "$0"` mksh-59c/Build.sh-259-orig_CFLAGS=$CFLAGS ############################################## mksh-59c/Build.sh-284- f=$1 mksh-59c/Build.sh:285: fu=`upper $f` mksh-59c/Build.sh-286- eval fv=\$HAVE_$fu ############################################## mksh-59c/Build.sh-314- fi mksh-59c/Build.sh:315: eval ft=\$HAVE_`upper $2` mksh-59c/Build.sh-316- shift ############################################## mksh-59c/Build.sh-381- f=$1 mksh-59c/Build.sh:382: fu=`upper $f` mksh-59c/Build.sh-383- eval fv=\$HAVE_$fu ############################################## mksh-59c/Build.sh-430- fi mksh-59c/Build.sh:431: eval fv=\$HAVE_CAN_`upper $vn` mksh-59c/Build.sh-432- test_z "$fl" || test 11 = $fa$fv || LDFLAGS=$save_LDFLAGS ############################################## mksh-59c/Build.sh-444- hf=$1; shift mksh-59c/Build.sh:445: hv=`echo "$hf" | tr -d "$lfcr" | tr -c $alll$allu$alln $alls` mksh-59c/Build.sh-446- echo "/* NeXTstep bug workaround */" >x ############################################## mksh-59c/Build.sh-487- mksh-59c/Build.sh:488:curdir=`pwd` srcdir=`dirname "$0" 2>/dev/null` mksh-59c/Build.sh-489-case x$srcdir in ############################################## mksh-59c/Build.sh-501-esac mksh-59c/Build.sh:502:dstversion=`sed -n '/define MKSH_VERSION/s/^.*"\([^"]*\)".*$/\1/p' "$srcdir/sh.h"` mksh-59c/Build.sh-503-add_cppflags -DMKSH_BUILDSH ############################################## mksh-59c/Build.sh-1246- vv '|' "$CC $CFLAGS $CPPFLAGS $LDFLAGS $NOWARN -v conftest.c $LIBS" mksh-59c/Build.sh:1247: vv '|' 'eval echo "\`$CC $CFLAGS $CPPFLAGS $LDFLAGS $NOWARN $LIBS -dumpmachine\`" \ mksh-59c/Build.sh:1248: "gcc\`$CC $CFLAGS $CPPFLAGS $LDFLAGS $NOWARN $LIBS -dumpversion\`"' mksh-59c/Build.sh-1249- : "${HAVE_STRING_POOLING=i2}" ############################################## mksh-59c/Build.sh-1287- else mksh-59c/Build.sh:1288: C89_COMPILER=`ntpath2posix -c "$C89_COMPILER"` mksh-59c/Build.sh-1289- fi ############################################## mksh-59c/Build.sh-1292- else mksh-59c/Build.sh:1293: C89_LINKER=`ntpath2posix -c "$C89_LINKER"` mksh-59c/Build.sh-1294- fi ############################################## mksh-59c/Build.sh-1499-# mksh-59c/Build.sh:1500:i=`echo :"$orig_CFLAGS" | sed 's/^://' | tr -c -d $alll$allu$alln` mksh-59c/Build.sh-1501-# optimisation: only if orig_CFLAGS is empty ############################################## mksh-59c/Build.sh-2015-for what in name list; do mksh-59c/Build.sh:2016: uwhat=`upper $what` mksh-59c/Build.sh-2017- ac_testn sys_sig$what '' "the sys_sig$what[] array" <<-EOF ############################################## mksh-59c/Build.sh-2427- *mksh_cfg*) $e "Error: NSIG='$NSIG'"; NSIG=0 ;; mksh-59c/Build.sh:2428: *[\ \(\)+-]*) NSIG=`"$AWK" "BEGIN { print $NSIG }" </dev/null` ;; mksh-59c/Build.sh-2429- esac ############################################## mksh-59c/Build.sh-2432- test $printf = echo || test "`printf %d 42`" = 42 || printf=echo mksh-59c/Build.sh:2433: test $printf = echo || NSIG=`printf %d "$NSIG" 2>/dev/null` mksh-59c/Build.sh-2434- $printf "NSIG=$NSIG ... " ############################################## mksh-59c/Build.sh-2462- done | sed -n '/^:[^ ]/s/^://p' | while read nr name; do mksh-59c/Build.sh:2463: test $printf = echo || nr=`printf %d "$nr" 2>/dev/null` mksh-59c/Build.sh-2464- test $nr -gt 0 && test $nr -lt $NSIG || continue ############################################## mksh-59c/Build.sh-2633-for file in $SRCS; do mksh-59c/Build.sh:2634: op=`echo x"$file" | sed 's/^x\(.*\)\.c$/\1./'` mksh-59c/Build.sh-2635- test -f $file || file=$srcdir/$file ############################################## mksh-59c/Build.sh-2664- for file in $optfiles; do mksh-59c/Build.sh:2665: genf=`basename "$file" | sed 's/.opt$/.gen/'` mksh-59c/Build.sh-2666- gens="$gens $genf" ############################################## mksh-59c/Build.sh-2732- test $cm = dragonegg && \ mksh-59c/Build.sh:2733: op=`echo x"$file" | sed 's/^x\(.*\)\.c$/\1./'` mksh-59c/Build.sh-2734- test -f $file || file=$srcdir/$file ############################################## mksh-59c/check.t-1480- u=x; (echo -n '15 '; ./pfs "foo ${IFS+a"b$u{ {"{{\}b} c ${IFS+d{}} bar" ${IFS-e{}} baz; echo .) 2>/dev/null || echo failed in 15 mksh-59c/check.t:1481: l=t; (echo 16 ${IFS+h`echo -n i ${IFS+$l}h`ere}) 2>/dev/null || echo failed in 16 mksh-59c/check.t-1482- l=t; (echo 17 ${IFS+h$(echo -n i ${IFS+$l}h)ere}) 2>/dev/null || echo failed in 17 mksh-59c/check.t:1483: l=t; (echo 18 "${IFS+h`echo -n i ${IFS+$l}h`ere}") 2>/dev/null || echo failed in 18 mksh-59c/check.t-1484- l=t; (echo 19 "${IFS+h$(echo -n i ${IFS+$l}h)ere}") 2>/dev/null || echo failed in 19 mksh-59c/check.t:1485: l=t; (echo 20 ${IFS+h`echo -n i "${IFS+$l}"h`ere}) 2>/dev/null || echo failed in 20 mksh-59c/check.t-1486- l=t; (echo 21 ${IFS+h$(echo -n i "${IFS+$l}"h)ere}) 2>/dev/null || echo failed in 21 mksh-59c/check.t:1487: l=t; (echo 22 "${IFS+h`echo -n i "${IFS+$l}"h`ere}") 2>/dev/null || echo failed in 22 mksh-59c/check.t-1488- l=t; (echo 23 "${IFS+h$(echo -n i "${IFS+$l}"h)ere}") 2>/dev/null || echo failed in 23 ############################################## mksh-59c/check.t-5904- x="foo bar" mksh-59c/check.t:5905: echo "`echo \"$x\"`" mksh-59c/check.t:5906: echo "`echo "$x"`" mksh-59c/check.t-5907- pdksh produces different output for the former (foo instead of foo\tbar) ############################################## mksh-59c/check.t-5909- x="foo bar" mksh-59c/check.t:5910: echo "`echo \"$x\"`" mksh-59c/check.t:5911: echo "`echo "$x"`" mksh-59c/check.t-5912-expected-stdout: ############################################## mksh-59c/check.t-6217- # the following line breaks it mksh-59c/check.t:6218: c=`echo $line | wc -c` mksh-59c/check.t-6219- echo $c ############################################## mksh-59c/check.t-7753- set -e mksh-59c/check.t:7754: for entry in a b; do ( set -e; if [[ -d $wd/zd/$entry.i386 ]]; then _newdir_="$entry.i386"; else _newdir_="$entry"; fi; if [[ -z $_THISDIR_ ]]; then _nextdir_="$_newdir_"; else _nextdir_="$_THISDIR_/$_newdir_"; fi; _makefile_spec_=; [[ ! -f $wd/zd/$_newdir_/Makefile.bsd-wrapper ]] || _makefile_spec_="-f Makefile.bsd-wrapper"; subskipdir=; for skipdir in ; do subentry=${skipdir#$entry}; if [[ $subentry != $skipdir ]]; then if [[ -z $subentry ]]; then echo "($_nextdir_ skipped)"; break; fi; subskipdir="$subskipdir ${subentry#/}"; fi; done; if [[ -z $skipdir || -n $subentry ]]; then echo "===> $_nextdir_"; cd $wd/zd/$_newdir_; make SKIPDIR="$subskipdir" $_makefile_spec_ _THISDIR_="$_nextdir_" all; fi; ) done 2>&1 | sed "s!$wd!WD!g" mksh-59c/check.t-7755-expected-stdout: ############################################## mksh-59c/check.t-12168- function comsub_QCHAR_OQUOTE_CQUOTE { mksh-59c/check.t:12169: x=$(\echo fo\ob\"a\`r\'b\$az ; \echo "fo\ob\"a\`r\'b\$az" ; \echo "fo\\ob\\\"a\\\`r"\'"b\\\$az" ) mksh-59c/check.t-12170- } ############################################## mksh-59c/check.t-12176- function reread_QCHAR_OQUOTE_CQUOTE { mksh-59c/check.t:12177: x=$( ( \echo fo\ob\"a\`r\'b\$az ; \echo "fo\ob\"a\`r\'b\$az" ; \echo "fo\\ob\\\"a\\\`r"\'"b\\\$az" ) | \tr u x ) mksh-59c/check.t-12178- } ############################################## mksh-59c/main.c-695- if (Flag(FLOGIN)) mksh-59c/main.c:696: include(substitute("$HOME/.profile", 0), 0, NULL, true); mksh-59c/main.c-697- if (Flag(FTALKING)) { ############################################## mksh-59c/tree.c-331- * OQUOTE ["'] ... CQUOTE ["'] mksh-59c/tree.c:332: * COMSUB [(`] ...\0 (handle $ ` \ and maybe " in `...` case) mksh-59c/tree.c-333- */ ############################################## mksh-59c/debian/meat-114- cd builddir/$where mksh-59c/debian/meat:115: echo "Attempting compilation of mksh in $where with CC='$CC'" mksh-59c/debian/meat-116- echo "CFLAGS='$CFLAGS' CPPFLAGS='$CPPFLAGS'"