You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
757 B
Bash
32 lines
757 B
Bash
gawkpath_default () {
|
|
unset AWKPATH
|
|
export AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`
|
|
}
|
|
|
|
gawkpath_prepend () {
|
|
[ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`
|
|
export AWKPATH="$*:$AWKPATH"
|
|
}
|
|
|
|
gawkpath_append () {
|
|
[ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`
|
|
export AWKPATH="$AWKPATH:$*"
|
|
}
|
|
|
|
gawklibpath_default () {
|
|
unset AWKLIBPATH
|
|
export AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`
|
|
}
|
|
|
|
gawklibpath_prepend () {
|
|
[ -z "$AWKLIBPATH" ] && \
|
|
AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`
|
|
export AWKLIBPATH="$*:$AWKLIBPATH"
|
|
}
|
|
|
|
gawklibpath_append () {
|
|
[ -z "$AWKLIBPATH" ] && \
|
|
AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`
|
|
export AWKLIBPATH="$AWKLIBPATH:$*"
|
|
}
|