=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== r-cran-xopen-1.0.0/inst/xdg-open-149- search="${XDG_DATA_HOME:-$HOME/.local/share}:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" r-cran-xopen-1.0.0/inst/xdg-open:150: binary="`which "$1"`" r-cran-xopen-1.0.0/inst/xdg-open:151: binary="`readlink -f "$binary"`" r-cran-xopen-1.0.0/inst/xdg-open:152: base="`basename "$binary"`" r-cran-xopen-1.0.0/inst/xdg-open-153- IFS=: ############################################## r-cran-xopen-1.0.0/inst/xdg-open-163- grep -Eq "^(NoDisplay|Hidden)=true" "$file" && continue r-cran-xopen-1.0.0/inst/xdg-open:164: command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word`" r-cran-xopen-1.0.0/inst/xdg-open:165: command="`which "$command"`" r-cran-xopen-1.0.0/inst/xdg-open:166: if [ x"`readlink -f "$command"`" = x"$binary" ]; then r-cran-xopen-1.0.0/inst/xdg-open-167- # Fix any double slashes that got added path composition ############################################## r-cran-xopen-1.0.0/inst/xdg-open-179- search="${XDG_DATA_HOME:-$HOME/.local/share}:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" r-cran-xopen-1.0.0/inst/xdg-open:180: desktop="`basename "$1"`" r-cran-xopen-1.0.0/inst/xdg-open-181- IFS=: ############################################## r-cran-xopen-1.0.0/inst/xdg-open-205- # Remove any arguments (%F, %f, %U, %u, etc.). r-cran-xopen-1.0.0/inst/xdg-open:206: command="`grep -E "^Exec(\[[^]=]*])?=" "$file_path" | cut -d= -f 2- | first_word`" r-cran-xopen-1.0.0/inst/xdg-open:207: command="`which "$command"`" r-cran-xopen-1.0.0/inst/xdg-open-208- readlink -f "$command" ############################################## r-cran-xopen-1.0.0/inst/xdg-open-319- [ -n "$file_label" ] || file_label="filename" r-cran-xopen-1.0.0/inst/xdg-open:320: file=`basename "$1"` r-cran-xopen-1.0.0/inst/xdg-open-321- case "$file" in ############################################## r-cran-xopen-1.0.0/inst/xdg-open-342- else r-cran-xopen-1.0.0/inst/xdg-open:343: DIR=`dirname "$1"` r-cran-xopen-1.0.0/inst/xdg-open-344- if [ ! -w "$DIR" ] || [ ! -x "$DIR" ]; then ############################################## r-cran-xopen-1.0.0/inst/xdg-open-494- version=`LC_ALL=C.UTF-8 kde-config --version 2>/dev/null | grep '^KDE'` r-cran-xopen-1.0.0/inst/xdg-open:495: major=`echo $version | sed 's/KDE.*: \([0-9]\).*/\1/'` r-cran-xopen-1.0.0/inst/xdg-open:496: minor=`echo $version | sed 's/KDE.*: [0-9]*\.\([0-9]\).*/\1/'` r-cran-xopen-1.0.0/inst/xdg-open:497: release=`echo $version | sed 's/KDE.*: [0-9]*\.[0-9]*\.\([0-9]\).*/\1/'` r-cran-xopen-1.0.0/inst/xdg-open-498- test "$major" -gt 3 && return $1 ############################################## r-cran-xopen-1.0.0/inst/xdg-open-745- file="$dir/$default" r-cran-xopen-1.0.0/inst/xdg-open:746: elif [ -r "$dir/`echo $default | sed -e 's|-|/|'`" ]; then r-cran-xopen-1.0.0/inst/xdg-open:747: file="$dir/`echo $default | sed -e 's|-|/|'`" r-cran-xopen-1.0.0/inst/xdg-open-748- fi ############################################## r-cran-xopen-1.0.0/inst/xdg-open-751- command="$(get_key "${file}" "Exec" | first_word)" r-cran-xopen-1.0.0/inst/xdg-open:752: command_exec=`which $command 2>/dev/null` r-cran-xopen-1.0.0/inst/xdg-open-753- icon="$(get_key "${file}" "Icon")" ############################################## r-cran-xopen-1.0.0/inst/xdg-open-807- filetype="$2" r-cran-xopen-1.0.0/inst/xdg-open:808: default=`xdg-mime query default "$filetype"` r-cran-xopen-1.0.0/inst/xdg-open-809- if [ -n "$default" ] ; then ############################################## r-cran-xopen-1.0.0/inst/xdg-open-816-DEBUG 3 "$xdg_user_dir:$xdg_system_dirs" r-cran-xopen-1.0.0/inst/xdg-open:817: for x in `echo "$xdg_user_dir:$xdg_system_dirs" | sed 's/:/ /g'`; do r-cran-xopen-1.0.0/inst/xdg-open-818- search_desktop_file "$default" "$x/applications/" "$1" ############################################## r-cran-xopen-1.0.0/inst/xdg-open-824-{ r-cran-xopen-1.0.0/inst/xdg-open:825: filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"` r-cran-xopen-1.0.0/inst/xdg-open-826- open_generic_xdg_mime "$1" "$filetype" ############################################## r-cran-xopen-1.0.0/inst/xdg-open-830-{ r-cran-xopen-1.0.0/inst/xdg-open:831: scheme="`echo $1 | sed -n 's/\(^[[:alnum:]+\.-]*\):.*$/\1/p'`" r-cran-xopen-1.0.0/inst/xdg-open-832- if [ -n $scheme ]; then ############################################## r-cran-xopen-1.0.0/inst/xdg-open-870- if has_display; then r-cran-xopen-1.0.0/inst/xdg-open:871: filetype=`xdg-mime query filetype "$file" | sed "s/;.*//"` r-cran-xopen-1.0.0/inst/xdg-open-872- open_generic_xdg_mime "$file" "$filetype" ############################################## r-cran-xopen-1.0.0/debian/tests/run-unit-test-6-if [ "$AUTOPKGTEST_TMP" = "" ] ; then r-cran-xopen-1.0.0/debian/tests/run-unit-test:7: AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX` r-cran-xopen-1.0.0/debian/tests/run-unit-test-8- trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM