Hackfut Security File Manager
Current Path:
/usr/bin
usr
/
bin
/
📁
..
📄
.ssh.hmac
(65 B)
📄
GET
(14.18 KB)
📄
Mail
(369.84 KB)
📄
[
(32.63 KB)
📄
a2p
(104.29 KB)
📄
aclocal
(30.45 KB)
📄
aclocal-1.11
(30.45 KB)
📄
addftinfo
(22.94 KB)
📄
addr2line
(24.35 KB)
📄
animate
(5.71 KB)
📄
ar
(55.3 KB)
📄
as
(320.7 KB)
📄
aspell
(160.22 KB)
📄
at
(1.01 KB)
📄
atq
(1.01 KB)
📄
atrm
(1.02 KB)
📄
autoconf
(14.29 KB)
📄
autoheader
(8.29 KB)
📄
autom4te
(31.04 KB)
📄
automake
(251.04 KB)
📄
automake-1.11
(251.04 KB)
📄
autoreconf
(19.76 KB)
📄
autoscan
(16.67 KB)
📄
autoupdate
(32.97 KB)
📄
awk
(366.81 KB)
📄
base64
(28.55 KB)
📄
bashbug-64
(6.77 KB)
📄
batch
(137 B)
📄
bdftops
(292 B)
📄
bison
(292.83 KB)
📄
bunzip2
(32.16 KB)
📄
bzcat
(32.16 KB)
📄
bzcmp
(2.08 KB)
📄
bzdiff
(2.08 KB)
📄
bzgrep
(1.64 KB)
📄
bzip2
(32.16 KB)
📄
bzip2recover
(10.62 KB)
📄
bzless
(1.23 KB)
📄
bzmore
(1.23 KB)
📄
c++
(261.65 KB)
📄
c++filt
(23.01 KB)
📄
c2ph
(35.74 KB)
📄
c89
(224 B)
📄
c99
(215 B)
📄
cal
(16.39 KB)
📄
captoinfo
(48.66 KB)
📄
catchsegv
(3.3 KB)
📄
cc
(258.27 KB)
📄
chcon
(55.8 KB)
📄
chrt
(9.4 KB)
📄
cksum
(24.68 KB)
📄
cldetect
(10.43 KB)
📄
clear
(4.86 KB)
📄
cloudlinux-awp-user
(890 B)
📄
clwpos-user
(890 B)
📄
cmp
(18.8 KB)
📄
col
(10.65 KB)
📄
colcrt
(7.73 KB)
📄
colrm
(5.45 KB)
📄
column
(9.52 KB)
📄
comm
(27.79 KB)
📄
compare
(5.83 KB)
📄
composite
(5.71 KB)
📄
conjure
(5.71 KB)
📄
convert
(5.71 KB)
📄
cpan
(8.06 KB)
📄
cpp
(261.63 KB)
📄
crontab
(1.15 KB)
📄
crontab.cagefs
(300.83 KB)
📄
csplit
(103.68 KB)
📄
curl
(117.41 KB)
📄
cut
(40.73 KB)
📄
dbiprof
(6.15 KB)
📄
dbiproxy
(5.35 KB)
📄
ddate
(11.18 KB)
📄
diff
(79.18 KB)
📄
diff3
(22.93 KB)
📄
dig
(130.52 KB)
📄
dir
(106.65 KB)
📄
dircolors
(32.1 KB)
📄
dirname
(23.16 KB)
📄
display
(5.71 KB)
📄
dltest
(7.06 KB)
📄
dprofpp
(23.52 KB)
📄
du
(93.21 KB)
📄
dumphint
(554 B)
📄
dvipdf
(1.03 KB)
📄
enc2xs
(38.23 KB)
📄
enchant
(12.83 KB)
📄
enchant-lsmod
(7.16 KB)
📄
env
(23.27 KB)
📄
eps2eps
(632 B)
📄
eqn
(134.11 KB)
📄
eqn2graph
(2.19 KB)
📄
expand
(27.3 KB)
📄
expr
(95.4 KB)
📄
factor
(43.65 KB)
📄
fc-cache
(12.7 KB)
📄
fc-cat
(10.88 KB)
📄
fc-list
(8.63 KB)
📄
fc-match
(9.76 KB)
📄
fc-query
(7.39 KB)
📄
fc-scan
(7.69 KB)
📄
file
(15.31 KB)
📄
find
(229.02 KB)
📄
find2perl
(23.06 KB)
📄
flex
(324.66 KB)
📄
flex++
(324.66 KB)
📄
flock
(10.67 KB)
📄
floppy
(23.06 KB)
📄
fmt
(29.55 KB)
📄
fold
(27.37 KB)
📄
font2c
(300 B)
📄
free
(9.47 KB)
📄
freetype-config
(3.74 KB)
📄
funzip
(21.54 KB)
📄
g++
(261.65 KB)
📄
gawk
(366.81 KB)
📄
gcc
(258.27 KB)
📄
gcov
(38.91 KB)
📄
gencat
(22.51 KB)
📄
geoiplookup
(14.71 KB)
📄
geoiplookup6
(10.65 KB)
📄
geqn
(134.11 KB)
📄
getconf
(22.28 KB)
📄
getent
(27.13 KB)
📄
getopt
(11.76 KB)
📄
ghostscript
(6.6 KB)
📄
gindxbib
(27.17 KB)
📄
git
(1.09 MB)
📄
git-receive-pack
(1.09 MB)
📄
git-shell
(446.8 KB)
📄
git-upload-archive
(1.09 MB)
📄
git-upload-pack
(456.86 KB)
📄
glookbib
(32.54 KB)
📄
gm
(4.74 KB)
📄
gmake
(166.58 KB)
📄
gneqn
(255 B)
📄
gnroff
(2.34 KB)
📄
gpg
(743.84 KB)
📄
gpg-agent
(290.99 KB)
📄
gpg-error
(18.14 KB)
📄
gpg-zip
(3.23 KB)
📄
gpg2
(743.84 KB)
📄
gpgsplit
(47.4 KB)
📄
gpgv
(328.59 KB)
📄
gpgv2
(328.59 KB)
📄
gpic
(208.61 KB)
📄
gprof
(92.73 KB)
📄
grefer
(119.36 KB)
📄
grn
(63.88 KB)
📄
grodvi
(79.49 KB)
📄
groff
(63.89 KB)
📄
groffer
(7.59 KB)
📄
grolbp
(85.9 KB)
📄
grolj4
(75.65 KB)
📄
grops
(114.27 KB)
📄
grotty
(75.49 KB)
📄
groups
(23.84 KB)
📄
gs
(6.6 KB)
📄
gsbj
(337 B)
📄
gsdj
(339 B)
📄
gsdj500
(342 B)
📄
gslj
(340 B)
📄
gslp
(337 B)
📄
gsnd
(264 B)
📄
gsoelim
(22.96 KB)
📄
gtbl
(95.88 KB)
📄
gtroff
(346.55 KB)
📄
gunzip
(61 B)
📄
gzexe
(5.73 KB)
📄
gzip
(63.17 KB)
📄
h2ph
(27.38 KB)
📄
h2xs
(58.97 KB)
📄
head
(31.76 KB)
📄
hexdump
(21.07 KB)
📄
host
(117.12 KB)
📄
hostid
(21.54 KB)
📄
hpftodit
(19.91 KB)
📄
hunspell
(51.55 KB)
📄
iconv
(58.86 KB)
📄
id
(27.45 KB)
📄
identify
(5.83 KB)
📄
idn
(31.73 KB)
📄
ifnames
(3.95 KB)
📄
import
(5.71 KB)
📄
indxbib
(27.17 KB)
📄
infocmp
(49.77 KB)
📄
infotocap
(48.66 KB)
📄
install
(104.69 KB)
📄
instmodsh
(4.1 KB)
📄
ionice
(14.76 KB)
📄
ipcrm
(8.85 KB)
📄
ipcs
(19.26 KB)
📄
isosize
(7.15 KB)
📄
ispell
(988 B)
📄
isql
(26.97 KB)
📄
iusql
(21.07 KB)
📄
join
(39.41 KB)
📄
kill
(11.3 KB)
📄
ld
(574.42 KB)
📄
ldd
(5.2 KB)
📄
less
(146.43 KB)
📄
lessecho
(7.2 KB)
📄
lesskey
(15.88 KB)
📄
lesspipe.sh
(2.74 KB)
📄
lex
(324.66 KB)
📄
libnetcfg
(15.36 KB)
📄
libtool
(276.69 KB)
📄
libtoolize
(66.56 KB)
📄
lkbib
(32.76 KB)
📄
locale
(37.73 KB)
📄
localedef
(319.22 KB)
📄
logger
(11.34 KB)
📄
logname
(21.63 KB)
📄
look
(7.89 KB)
📄
lookbib
(32.54 KB)
📄
lprsetup.sh
(4.55 KB)
📄
lynx
(1.33 MB)
📄
m4
(203.63 KB)
📄
make
(166.58 KB)
📄
mcookie
(10.77 KB)
📄
md5sum
(31.71 KB)
📄
mesg
(6.59 KB)
📄
mkfifo
(24.68 KB)
📄
mogrify
(5.71 KB)
📄
montage
(5.71 KB)
📄
msql2mysql
(1.91 KB)
📄
my_print_defaults
(3.12 MB)
📄
mysql
(3.67 MB)
📄
mysql_config
(6.85 KB)
📄
mysql_find_rows
(3.7 KB)
📄
mysql_waitpid
(3.12 MB)
📄
mysqlaccess
(109.89 KB)
📄
mysqladmin
(3.37 MB)
📄
mysqlbinlog
(3.56 MB)
📄
mysqlcheck
(3.36 MB)
📄
mysqldump
(3.44 MB)
📄
mysqlimport
(3.36 MB)
📄
mysqlshow
(3.36 MB)
📄
namei
(12.41 KB)
📄
nano
(167.76 KB)
📄
neqn
(255 B)
📄
nl
(95.82 KB)
📄
nm
(40.16 KB)
📄
nohup
(25.57 KB)
📄
nproc
(23.7 KB)
📄
nroff
(2.34 KB)
📄
nslookup
(117.3 KB)
📄
nsupdate
(58.13 KB)
📄
objcopy
(207.13 KB)
📄
objdump
(274.1 KB)
📄
od
(56.79 KB)
📄
odbc_config
(6.65 KB)
📄
odbcinst
(22.78 KB)
📄
openssl
(513.28 KB)
📄
pango-querymodules-64
(9.94 KB)
📄
pango-view
(48.52 KB)
📄
passwd
(1.02 KB)
📄
paste
(24.95 KB)
📄
patch
(115.34 KB)
📄
pathchk
(23.2 KB)
📄
pdf2dsc
(696 B)
📄
pdf2ps
(901 B)
📄
pdfopt
(547 B)
📄
perl
(7.01 KB)
📄
perl5.10.1
(7.01 KB)
📄
perlbug
(43.68 KB)
📄
perldoc
(224 B)
📄
perlivp
(12.01 KB)
📄
perlml
(4.38 KB)
📄
perlthanks
(43.68 KB)
📄
pf2afm
(495 B)
📄
pfbtopfa
(511 B)
📄
pfbtops
(6.62 KB)
📄
pgrep
(15.77 KB)
📄
php
(937 B)
📄
pic
(208.61 KB)
📄
pic2graph
(2.5 KB)
📄
piconv
(7.17 KB)
📄
pinentry
(2.54 KB)
📄
pinentry-curses
(47.46 KB)
📄
pinky
(28.91 KB)
📄
pkg-config
(103.41 KB)
📄
pkill
(15.77 KB)
📄
pl2pm
(4.42 KB)
📄
pmap
(11.85 KB)
📄
pod2html
(2.28 KB)
📄
pod2latex
(10.01 KB)
📄
pod2man
(20.68 KB)
📄
pod2text
(8.87 KB)
📄
pod2usage
(3.26 KB)
📄
podchecker
(3.61 KB)
📄
podselect
(2.47 KB)
📄
post-grohtml
(128.52 KB)
📄
pr
(60.32 KB)
📄
pre-grohtml
(68.98 KB)
📄
precat
(5.52 KB)
📄
preunzip
(5.52 KB)
📄
prezip
(5.52 KB)
📄
prezip-bin
(6.98 KB)
📄
printafm
(386 B)
📄
printenv
(23.18 KB)
📄
printf
(45.26 KB)
📄
protoize
(67.05 KB)
📄
prove
(13.24 KB)
📄
ps2ascii
(786 B)
📄
ps2epsi
(2.71 KB)
📄
ps2pdf
(315 B)
📄
ps2pdf12
(260 B)
📄
ps2pdf13
(260 B)
📄
ps2pdf14
(260 B)
📄
ps2pdfwr
(1.06 KB)
📄
ps2ps
(634 B)
📄
ps2ps2
(704 B)
📄
psed
(52.08 KB)
📄
pstruct
(35.74 KB)
📄
ptx
(124.09 KB)
📄
pv.sh
(1.39 KB)
📄
pwdx
(6.59 KB)
📄
pydoc
(78 B)
📄
python
(4.75 KB)
📄
python2
(4.75 KB)
📄
python2.6
(4.75 KB)
📄
ranlib
(55.3 KB)
📄
readelf
(292.14 KB)
📄
readlink
(35.51 KB)
📄
recode
(39.23 KB)
📄
refer
(119.36 KB)
📄
rename
(6.59 KB)
📄
renice
(7.15 KB)
📄
reset
(17.48 KB)
📄
rev
(6.63 KB)
📄
rnano
(167.76 KB)
📄
rpcgen
(90.82 KB)
📄
run-with-aspell
(85 B)
📄
runcon
(27.45 KB)
📄
rvim
(2.18 MB)
📄
s2p
(52.08 KB)
📄
scl
(17.88 KB)
📄
scl_enabled
(258 B)
📄
scl_source
(1.83 KB)
📄
scp
(66.06 KB)
📄
screen
(374.12 KB)
📄
script
(12.33 KB)
📄
sdiff
(23.02 KB)
📄
selectorctl
(7.78 KB)
📄
seq
(39.34 KB)
📄
setsid
(5.41 KB)
📄
setterm
(20.3 KB)
📄
sftp
(102.07 KB)
📄
sha1sum
(35.43 KB)
📄
sha224sum
(41.15 KB)
📄
sha256sum
(41.15 KB)
📄
sha384sum
(47.43 KB)
📄
sha512sum
(47.43 KB)
📄
shred
(47.75 KB)
📄
shuf
(35.55 KB)
📄
size
(27.38 KB)
📄
skill
(14.75 KB)
📄
slabtop
(12.59 KB)
📄
slogin
(440.16 KB)
📄
snice
(14.75 KB)
📄
soelim
(22.96 KB)
📄
spell
(122 B)
📄
splain
(17.04 KB)
📄
split
(51.59 KB)
📄
sprof
(22.56 KB)
📄
sqlite3
(51.45 KB)
📄
ssh
(440.16 KB)
📄
ssh-add
(155.2 KB)
📄
ssh-agent
(138.07 KB)
📄
ssh-copy-id
(1.39 KB)
📄
ssh-keygen
(195.2 KB)
📄
ssh-keyscan
(247.8 KB)
📄
stat
(45.07 KB)
📄
stdbuf
(59.49 KB)
📄
strace
(423.4 KB)
📄
stream
(5.71 KB)
📄
strings
(27.38 KB)
📄
strip
(207.13 KB)
📄
sum
(31.34 KB)
📄
tabs
(10.93 KB)
📄
tac
(91.52 KB)
📄
tail
(56.34 KB)
📄
tailf
(8.32 KB)
📄
tbl
(95.88 KB)
📄
tclsh
(5.1 KB)
📄
tclsh8.5
(5.1 KB)
📄
tee
(23.62 KB)
📄
test
(29.54 KB)
📄
tfmtodit
(23.01 KB)
📄
tic
(48.66 KB)
📄
time
(13.8 KB)
📄
timeout
(45.63 KB)
📄
tload
(7.64 KB)
📄
tmpwatch
(17.38 KB)
📄
toe
(11.13 KB)
📄
top
(60.98 KB)
📄
tput
(11.23 KB)
📄
tr
(36.73 KB)
📄
troff
(346.55 KB)
📄
truncate
(47.48 KB)
📄
tset
(17.48 KB)
📄
tsort
(31.23 KB)
📄
tty
(21.41 KB)
📄
tzselect
(6.96 KB)
📄
uapi
(1.02 KB)
📄
ul
(13.1 KB)
📄
unexpand
(27.4 KB)
📄
uniq
(35.62 KB)
📄
unix-lpr.sh
(4.11 KB)
📄
unprotoize
(56.16 KB)
📄
unzip
(163.23 KB)
📄
unzipsfx
(75.16 KB)
📄
uptime
(4.73 KB)
📄
users
(23.54 KB)
📄
utmpdump
(10.68 KB)
📄
vdir
(106.65 KB)
📄
vim
(2.18 MB)
📄
vimdiff
(2.18 MB)
📄
vimtutor
(2.04 KB)
📄
vmstat
(19.84 KB)
📄
watch
(12.28 KB)
📄
wc
(31.85 KB)
📄
wftopfa
(284 B)
📄
wget
(349.02 KB)
📄
whereis
(11.19 KB)
📄
which
(20.28 KB)
📄
who
(43.96 KB)
📄
whoami
(23.18 KB)
📄
word-list-compress
(6.56 KB)
📄
x86_64-redhat-linux-c++
(261.65 KB)
📄
x86_64-redhat-linux-g++
(261.65 KB)
📄
x86_64-redhat-linux-gcc
(258.27 KB)
📄
xargs
(42.99 KB)
📄
xmlcatalog
(14.8 KB)
📄
xmllint
(57.38 KB)
📄
xmlwf
(21.89 KB)
📄
xsltproc
(22.98 KB)
📄
xsubpp
(4.96 KB)
📄
xxd
(14.8 KB)
📄
yes
(21.6 KB)
📄
zcmp
(67 B)
📄
zdiff
(4.34 KB)
📄
zegrep
(62 B)
📄
zfgrep
(62 B)
📄
zforce
(1.98 KB)
📄
zgrep
(4.86 KB)
📄
zip
(207.08 KB)
📄
zipcloak
(104.59 KB)
📄
zipgrep
(2.88 KB)
📄
zipinfo
(163.23 KB)
📄
zipnote
(96.27 KB)
📄
zipsplit
(100.27 KB)
📄
zless
(1.69 KB)
📄
zmore
(2.54 KB)
📄
znew
(5.12 KB)
📄
zsoelim
(22.96 KB)
Editing: groffer
#! /bin/sh # groffer - display groff files # Source file position: <groff-source>/contrib/groffer/groffer.sh # Installed position: <prefix>/bin/groffer # Copyright (C) 2001,2002,2003,2004,2005,2006 # Free Software Foundation, Inc. # Written by Bernd Warken # Last update: 3 Oct 2006 # This file is part of `groffer', which is part of `groff'. # `groff' is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # `groff' is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with `groff'; see the files COPYING and LICENSE in the top # directory of the `groff' source. If not, write to the Free Software # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, # USA. ######################################################################## export GROFFER_OPT; # option environment for groffer export _CONF_FILE_ETC; # configuration file in /etc export _CONF_FILE_HOME; # configuration file in $HOME export _CONF_FILES; # configuration files _CONF_FILE_ETC='/etc/groff/groffer.conf'; _CONF_FILE_HOME="${HOME}/.groff/groffer.conf"; _CONF_FILES="${_CONF_FILE_ETC} ${_CONF_FILE_HOME}"; # characters export _AT; export _SP; export _SQ; export _TAB; _AT='@'; _SP=' '; _SQ="'"; _TAB=' '; export _ERROR; _ERROR='7'; # for syntax errors; no `-1' in `ash' # @...@ constructs export _BEFORE_MAKE; if test _1.18.1.4_ = _${_AT}VERSION${_AT}_ then # script before `make' _BEFORE_MAKE='yes'; else _BEFORE_MAKE='no'; fi; export _AT_BINDIR_AT; export _AT_G_AT; export _AT_LIBDIR_AT; export _GROFFER_LIBDIR; case "${_BEFORE_MAKE}" in yes) self="$0"; case "${self}" in /*) :; ;; *) curdir="$(pwd)"; case "${curdir}" in */) self="${curdir}${self}"; ;; *) self="${curdir}/${self}"; ;; esac; ;; esac; groffer_shell_dir="$(dirname ${self})"; case "${groffer_shell_dir}" in */) :; ;; *) groffer_shell_dir="${groffer_shell_dir}/"; esac; _AT_G_AT=''; _AT_BINDIR_AT="${groffer_shell_dir}"; _AT_LIBDIR_AT="${groffer_shell_dir}"; _GROFFER_LIBDIR="${_AT_LIBDIR_AT}"; ;; no) _AT_G_AT=''; _AT_BINDIR_AT='/usr/bin'; case "${_AT_BINDIR_AT}" in */) :; ;; *) _AT_BINDIR_AT="${_AT_BINDIR_AT}/"; esac; _AT_LIBDIR_AT='/usr/lib64'; case "${_AT_LIBDIR_AT}" in */) :; ;; *) _AT_LIBDIR_AT="${_AT_LIBDIR_AT}/"; esac; _GROFFER_LIBDIR="${_AT_LIBDIR_AT}"'groff/groffer/'; ;; esac; if test -f "${_GROFFER_LIBDIR}"'version.sh' then . "${_GROFFER_LIBDIR}"'version.sh'; fi; export _GROFF_VERSION; case "${_BEFORE_MAKE}" in yes) _GROFF_VERSION="${_GROFF_VERSION_PRESET}"; ;; no) _GROFF_VERSION='1.18.1.4'; ;; esac; export _GROFFER2_SH; # file name of the script that follows up _GROFFER2_SH="${_GROFFER_LIBDIR}${_GROFF_VERSION}"'groffer2.sh'; export _GROFFER_SH; # file name of this shell script case "$0" in *groffer*) _GROFFER_SH="$0"; ;; *) echo 'The groffer script should be started directly.' >&2 exit 1; ;; esac; export _NULL_DEV; if test -c /dev/null then _NULL_DEV="/dev/null"; else _NULL_DEV="NUL"; fi; # Test of the `$()' construct. if test _"$(echo "$(echo 'test')")"_ \ != _test_ then echo 'The "$()" construct did not work.' >&2; exit "${_ERROR}"; fi; # Test of sed program if test _"$(echo red | sed -e 's/r/s/')"_ != _sed_ then echo 'The sed program did not work.' >&2; exit "${_ERROR}"; fi; ########################### configuration # read and transform the configuration files, execute the arising commands for f in "${_CONF_FILE_HOME}" "${_CONF_FILE_ETC}" do if test -f "$f" then o=""; # $o means groffer option # use "" quotes because of ksh and posh eval "$(cat "$f" | sed -n -e ' # Ignore comments /^['"${_SP}${_TAB}"']*#/d # Delete leading and final space s/^['"${_SP}${_TAB}"']*// s/['"${_SP}${_TAB}"']*$// # Print all lines with shell commands, those not starting with - /^[^-]/p # Remove all single and double quotes s/['"${_SQ}"'"]//g # Replace empty arguments s/^\(-[^ ]*\)=$/o="${o} \1 '"${_SQ}${_SQ}"'"/p # Replace division between option and argument by single space s/[='"${_SP}${_TAB}"']['"${_SP}${_TAB}"']*/'"${_SP}"'/ # Handle lines without spaces s/^\(-[^'"${_SP}"']*\)$/o="${o} \1"/p # Encircle the remaining arguments with single quotes s/^\(-[^ ]*\) \(.*\)$/o="${o} \1 '"${_SQ}"'\2'"${_SQ}"'"/p ')" # Remove leading space o="$(echo "$o" | sed -e 's/^ *//')"; if test _"${o}"_ != __ then if test _"{GROFFER_OPT}"_ = __ then GROFFER_OPT="${o}"; else GROFFER_OPT="${o} ${GROFFER_OPT}"; fi; fi; fi; done; # integrate $GROFFER_OPT into the command line; it isn't needed any more if test _"${GROFFER_OPT}"_ != __ then eval set x "${GROFFER_OPT}" '"$@"'; shift; GROFFER_OPT=''; fi; ########################### Determine the shell export _SHELL; # use "``" instead of "$()" for using the case ")" construct # do not use "" quotes because of ksh _SHELL=` # $x means list. # $s means shell. # The command line arguments are taken over. # Shifting herein does not have an effect outside. export x; case " $*" in *\ --sh*) # abbreviation for --shell x=''; s=''; # determine all --shell arguments, store them in $x in reverse order while test $# != 0 do case "$1" in --shell|--sh|--she|--shel) if test "$#" -ge 2 then s="$2"; shift; fi; ;; --shell=*|--sh=*|--she=*|--shel=*) # delete up to first "=" character s="$(echo x"$1" | sed -e 's/^x[^=]*=//')"; ;; *) shift; continue; esac; if test _"${x}"_ = __ then x="'${s}'"; else x="'${s}' ${x}"; fi; shift; done; # from all possible shells in $x determine the first being a shell # or being empty s="$( # "" quotes because of posh eval set x "${x}"; shift; if test $# != 0 then for i do if test _"$i"_ = __ then # use the empty argument as the default shell echo empty; break; else # test $i on being a shell program; # use this kind of quoting for posh if test _"$(eval "$i -c 'echo ok'" 2>${_NULL_DEV})"_ = _ok_ >&2 then # shell found cat <<EOF ${i} EOF break; else # if not being a shell go on searching continue; fi; fi; done; fi; )"; if test _"${s}"_ != __ then cat <<EOF ${s} EOF fi; ;; esac; ` ########################### test fast shells for automatic run if test _"${_SHELL}"_ = __ then for s in ksh ash dash pdksh zsh posh do if test _"$(eval "$s -c 'echo ok'" 2>${_NULL_DEV})"_ = _ok_ >&2 then _SHELL="$s"; break; fi; done; fi; ########################### start groffer2.sh if test _"${_SHELL}"_ = _empty_ then _SHELL=''; fi; if test _"${_SHELL}"_ = __ then # no shell found, so start groffer2.sh normally #eval . "'${_GROFFER2_SH}'" '"$@"'; eval . "/usr/share/groff/${_GROFF_VERSION}/groffer/groffer2.sh" '"$@"'; exit; else # start groffer2.sh with the found $_SHELL # do not quote $_SHELL to allow arguments eval exec "${_SHELL} '${_GROFFER2_SH}'" '"$@"'; exit; fi;
Upload File
Create Folder