3 #==============================================================================
5 # File ID: 6dbf2f84-f7c0-11e2-9a3f-001f3b596ec9
7 # Wrapper for Midnight Commander.
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #==============================================================================
16 sess_str
="sess -d mc -t c_mc --"
17 test "$1" = "--version" && unset sess_str
18 test "$HISTFILE" = "/dev/null" && unset sess_str
20 if test -x ~
/local
/bin
/mc
; then
21 $sess_str ~
/local
/bin
/mc
-d "$@"
22 elif test -x /usr
/src-other
/bin
/mc
; then
23 $sess_str /usr
/src-other
/bin
/mc
-d "$@"
24 elif test -x /usr
/local
/bin
/mc
; then
25 $sess_str /usr
/local
/bin
/mc
-d "$@"
26 elif test -x /usr
/bin
/mc
; then
27 $sess_str /usr
/bin
/mc
-d "$@"
29 echo mc is not installed here.
>&2
33 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :