summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbornet-hl <mbornet.pro@wanadoo.fr>2015-11-08 17:44:30 +0100
committermbornet-hl <mbornet.pro@wanadoo.fr>2015-11-08 17:44:30 +0100
commit1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e (patch)
tree17a2f3e31e1392fc926ea8684235b23764f0ec9a
parentd981136a455ecb551562fbfdbf939b987f3c2fb4 (diff)
downloadhl-1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e.zip
hl-1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e.tar.gz
hl-1a0993b91a9e88046cc245dbd0cd0f6bdcb1d95e.tar.bz2
Added management of WHICH in hl_generic
-rwxr-xr-xhl_bin/cal7
-rwxr-xr-xhl_bin/df7
-rwxr-xr-xhl_bin/diff7
-rwxr-xr-xhl_bin/dpkg-query7
-rwxr-xr-xhl_bin/ethtool7
-rwxr-xr-xhl_bin/fdisk7
-rwxr-xr-xhl_bin/free7
-rwxr-xr-xhl_bin/hl_generic7
-rwxr-xr-xhl_bin/ifconfig7
-rwxr-xr-xhl_bin/iostat7
-rwxr-xr-xhl_bin/iptables7
-rwxr-xr-xhl_bin/man7
-rwxr-xr-xhl_bin/namei7
-rwxr-xr-xhl_bin/netstat7
-rwxr-xr-xhl_bin/ps7
-rwxr-xr-xhl_bin/strace7
-rwxr-xr-xhl_bin/tcpdump7
-rwxr-xr-xhl_bin/w7
-rwxr-xr-xhl_bin/xxd7
19 files changed, 114 insertions, 19 deletions
diff --git a/hl_bin/cal b/hl_bin/cal
index 0125919..752b15f 100755
--- a/hl_bin/cal
+++ b/hl_bin/cal
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/df b/hl_bin/df
index 0125919..752b15f 100755
--- a/hl_bin/df
+++ b/hl_bin/df
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/diff b/hl_bin/diff
index 0125919..752b15f 100755
--- a/hl_bin/diff
+++ b/hl_bin/diff
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/dpkg-query b/hl_bin/dpkg-query
index 0125919..752b15f 100755
--- a/hl_bin/dpkg-query
+++ b/hl_bin/dpkg-query
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/ethtool b/hl_bin/ethtool
index 0125919..752b15f 100755
--- a/hl_bin/ethtool
+++ b/hl_bin/ethtool
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/fdisk b/hl_bin/fdisk
index 0125919..752b15f 100755
--- a/hl_bin/fdisk
+++ b/hl_bin/fdisk
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/free b/hl_bin/free
index 0125919..752b15f 100755
--- a/hl_bin/free
+++ b/hl_bin/free
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/hl_generic b/hl_bin/hl_generic
index 0125919..752b15f 100755
--- a/hl_bin/hl_generic
+++ b/hl_bin/hl_generic
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/ifconfig b/hl_bin/ifconfig
index 0125919..752b15f 100755
--- a/hl_bin/ifconfig
+++ b/hl_bin/ifconfig
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/iostat b/hl_bin/iostat
index 0125919..752b15f 100755
--- a/hl_bin/iostat
+++ b/hl_bin/iostat
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/iptables b/hl_bin/iptables
index 0125919..752b15f 100755
--- a/hl_bin/iptables
+++ b/hl_bin/iptables
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/man b/hl_bin/man
index 0125919..752b15f 100755
--- a/hl_bin/man
+++ b/hl_bin/man
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/namei b/hl_bin/namei
index 0125919..752b15f 100755
--- a/hl_bin/namei
+++ b/hl_bin/namei
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/netstat b/hl_bin/netstat
index 0125919..752b15f 100755
--- a/hl_bin/netstat
+++ b/hl_bin/netstat
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/ps b/hl_bin/ps
index 0125919..752b15f 100755
--- a/hl_bin/ps
+++ b/hl_bin/ps
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/strace b/hl_bin/strace
index 0125919..752b15f 100755
--- a/hl_bin/strace
+++ b/hl_bin/strace
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/tcpdump b/hl_bin/tcpdump
index 0125919..752b15f 100755
--- a/hl_bin/tcpdump
+++ b/hl_bin/tcpdump
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/w b/hl_bin/w
index 0125919..752b15f 100755
--- a/hl_bin/w
+++ b/hl_bin/w
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~
diff --git a/hl_bin/xxd b/hl_bin/xxd
index 0125919..752b15f 100755
--- a/hl_bin/xxd
+++ b/hl_bin/xxd
@@ -3,7 +3,7 @@
# Script for command output colorization
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl_generic Version 1.10 du 15/10/10 -
+# @(#) [MB] cr_hl_generic Version 1.12 du 15/11/08 -
#
# This script calls the original programme with all the arguments
# it received, and pipes it to "hl" using its name as the "hl"
@@ -32,6 +32,11 @@ dirname="$(dirname "$pathname")"
PATH="$(echo "$PATH" | sed "s|^$dirname:||;s|:$dirname:|:|g")"
export PATH
+if [ "$WHICH" = 1 ]; then
+ type "$progname"
+ exit 1
+fi
+
if [ "$USE_HL" = "no" ]; then
# No colorization
# ~~~~~~~~~~~~~~~