File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,8 @@ shred() {
435435
436436command -v srm > /dev/null || srm () { shred " $@ " ; }
437437
438- command -v strings > /dev/null || strings () { perl -nle ' print $& while m/[[:print:]]{8,}/g' " $@ " ; }
438+ command -v strings > /dev/null || { command -v perl > /dev/null && strings () { perl -nle ' print $& while m/[[:print:]]{8,}/g' " $@ " ; }; }
439+ command -v strings > /dev/null || { command -v grep > /dev/null && strings () { grep -a -o -E ' [[:print:]]{8,}' " $@ " ; }; }
439440
440441bounceinit () {
441442 [[ -n " $_is_bounceinit " ]] && return
@@ -1144,6 +1145,11 @@ gsnc() {
11441145 [ -z " $GSNC " ] && return 255
11451146 _GS_ALLOWNOARG=1 " $GSNC " " $@ "
11461147}
1148+ # Show the GSNC config.
1149+ gsconfig () {
1150+ GS_CONFIG_CHECK=1 GS_CONFIG_READ=" $GSNC " gsnc || return
1151+ echo " GS_CONFIG_BIN='$GSNC '"
1152+ }
11471153command -v gs-netcat > /dev/null || gs-netcat () { gsnc " $@ " ; }
11481154
11491155gsinst () {
You can’t perform that action at this time.
0 commit comments