Initial commit.
This commit is contained in:
31
profile.d/gawk.sh
Normal file
31
profile.d/gawk.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
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:$*"
|
||||
}
|
||||
Reference in New Issue
Block a user