Skip to content
Snippets Groups Projects
Commit 43b52900 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

add support for dash shell.

git-svn-id: http://root.cern.ch/svn/root/trunk@19522 27541ba8-7e3a-0410-8455-c3a389f83636
parent ca91b9b5
Branches
Tags
No related merge requests found
// @(#)root/net:$Name: $:$Id: TApplicationRemote.cxx,v 1.13 2007/06/26 16:23:43 rdm Exp $ // @(#)root/net:$Name: $:$Id: TApplicationRemote.cxx,v 1.14 2007/07/10 14:14:33 rdm Exp $
// Author: G. Ganis 10/5/2007 // Author: G. Ganis 10/5/2007
/************************************************************************* /*************************************************************************
...@@ -62,7 +62,7 @@ static const char *gScriptCmd = "\\\"%s %d localhost:%d/%s -d=%d\\\""; ...@@ -62,7 +62,7 @@ static const char *gScriptCmd = "\\\"%s %d localhost:%d/%s -d=%d\\\"";
#ifndef WIN32 #ifndef WIN32
static const char *gSshCmd = "ssh %s -f4 %s -R %d:localhost:%d sh -c \ static const char *gSshCmd = "ssh %s -f4 %s -R %d:localhost:%d sh -c \
\"'(sh=\\`basename \'\\\\\\$SHELL\'\\`; \ \"'(sh=\\`basename \'\\\\\\$SHELL\'\\`; \
if test xbash = x\'\\\\\\$sh\' -o xsh = x\'\\\\\\$sh\' -o xksh = x\'\\\\\\$sh\' -o xzsh = x\'\\\\\\$sh\'; then \ if test xbash = x\'\\\\\\$sh\' -o xsh = x\'\\\\\\$sh\' -o xksh = x\'\\\\\\$sh\' -o xzsh = x\'\\\\\\$sh\' -o xdash = x\'\\\\\\$sh\'; then \
\'\\\\\\$SHELL\' -l -c %s; \ \'\\\\\\$SHELL\' -l -c %s; \
elif test xcsh = x\'\\\\\\$sh\' -o xtcsh = x\'\\\\\\$sh\'; then \ elif test xcsh = x\'\\\\\\$sh\' -o xtcsh = x\'\\\\\\$sh\'; then \
\'\\\\\\$SHELL\' -c %s; \ \'\\\\\\$SHELL\' -c %s; \
...@@ -72,7 +72,7 @@ static const char *gSshCmd = "ssh %s -f4 %s -R %d:localhost:%d sh -c \ ...@@ -72,7 +72,7 @@ static const char *gSshCmd = "ssh %s -f4 %s -R %d:localhost:%d sh -c \
#else #else
static const char *gSshCmd = "ssh %s -f4 %s -R %d:localhost:%d sh -c \ static const char *gSshCmd = "ssh %s -f4 %s -R %d:localhost:%d sh -c \
\"'(sh=`basename $SHELL`; \ \"'(sh=`basename $SHELL`; \
if test xbash = x$sh -o xsh = x$sh -o xksh = x$sh -o xzsh = x$sh; then \ if test xbash = x$sh -o xsh = x$sh -o xksh = x$sh -o xzsh = x$sh -o xdash = x$sh; then \
$SHELL -l -c %s; \ $SHELL -l -c %s; \
elif test xcsh = x$sh -o xtcsh = x$sh; then \ elif test xcsh = x$sh -o xtcsh = x$sh; then \
$SHELL -c %s; \ $SHELL -c %s; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment