Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../server/../.././bin/gegrep
Real path: /usr/gnu/bin/egrep
Zurück
#!/bin/bash cmd=${0##*/} echo "$cmd: warning: $cmd is obsolescent; using grep -E" >&2 # The script is a wrapper to GNU grep to be called with apropriate (-E or -F) # command line option. We can't just run 'ggrep' as the path may not contain # '/usr/bin' and we can't just use 'grep' as the PATH may not contain # '/usr/gnu/bin'. Also we can't just use fixed path as /usr/gnu/bin/grep because # this script must work even from workspace before being installed into /usr/... # testing the binaries from the workspace. if [[ "$( /usr/bin/basename "$0" )" == g* ]]; then # gfgrep or gegrep (potentially in /usr/bin) grep=ggrep else # fgrep or egrep in (potentially in /usr/gnu/bin) grep=grep fi case "$0" in */*) dir="${0%/*}" if test -x "$dir/$grep"; then PATH="$dir:$PATH" fi ;; *) PATH="@prefix@/bin:$PATH" ;; esac exec "$grep" -E "$@"