This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Launching Term


Howdy all!

I am one of those unfortunates that is trying to manage Rational Rose on the
same machine as cygwin-XFree.

So far I have been able to get around all problems (involving Cygwin alone)
by editing a few scripts to change environment variables to ones Cygwin
likes and I am hoping this problem can be dealt with in the same way for
XFree.

I launch XFree with the startxwin.bat with the following alterations at the
top of the script:

SET TERMCAP=\cygwin\etc\termcap
SET TERMINFO=\cygwin\lib\terminfo
set SHELL=\cygwin\bin\bash.exe
set TERM=cygwin

When I click on the new desktop and select XTERM, it comes back with an
error message:

  Could not exec /cygwin/bin/bash.exe: no such file or directory.

I tried changing the batch file's SHELL variable to this:
  set SHELL=\bin\bash.exe
and then restarted and tried launching XTERM again, only to get a similar
message:

Could not exec /bin/bash.exe: no such file or directory.

I can confirm that the file exists however:

  $ [ -f /bin/bash.exe ] && echo File exists
  $ File exists

What is going on here?

Is it the case that XFree wants to launch a different bash? (I searhced the
cygwin directory heirarchy and found only one bash.exe though.)

Is there perhaps some other variable that I have overlooked that needs
changing too?

Just in case, I have included the output below from a set command.

Secondly, I notice that an XTERM is started from startxwin.bat with the
following command:
start xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/usr/bin/bash
I tried changing SHELL to \usr\bin\bash as well and just got the same error
with /usr/bin/bash instead.

Any advice is appreciated!

Rob

:)
:-}
;->



!C:='C:\Documents and Settings\Robert Mark Bram\Desktop'
ALLUSERSPROFILE='C:\Documents and Settings\All Users'
APPDATA='C:\Documents and Settings\Robert Mark Bram\Application Data'
BASH=/usr/bin/bash
BASH_VERSINFO=([0]="2" [1]="05a" [2]="0" [3]="3" [4]="release"
[5]="i686-pc-cygwin")
BASH_VERSION='2.05a.0(3)-release'
CLASSPATH='.;C:\Program Files\Java\j2re1.4.0\QTJava.zip'
COLUMNS=80
COMMONHOME='C:\Program Files\Rational\common'
COMMONPROGRAMFILES='C:\Program Files\Common Files'
COMPUTERNAME=DIJONG
COMSPEC='C:\WINNT\system32\cmd.exe'
CYGWIN_ROOT='\cygwin'
DIRSTACK=()
DISPLAY=127.0.0.1:0.0
EUID=1000
GROUPS=()
HISTFILE=/cygdrive/c/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/cygdrive/c
HOMEDRIVE=C:
HOMEPATH='\'
HOSTNAME=DIJONG
HOSTTYPE=i686
IFS=$' \t\n'
LINES=24
LOGNAME='Robert Mark Bram'
LOGONSERVER='\\DIJONG'
MACHTYPE=i686-pc-cygwin
MAILCHECK=60
NUMBER_OF_PROCESSORS=1
NUTCROOT='C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT'
NUTSUFFIX=1
NUT_SUFFIXED_SEARCHING=1
OLDPWD='/cygdrive/c/Documents and Settings/Robert Mark Bram/Desktop'
OPTERR=1
OPTIND=1
OS=Windows_NT
OS2LIBPATH='C:\WINNT\system32\os2\dll;'
OSTYPE=cygwin
PATH='.:/usr/bin:/usr/X11R6/bin:/cygdrive/c/PROGRA~1/RATIONAL/RATION~1/NUTCR
OOT/bin:/cygdrive/c/PROGRA~1/RATIONAL/RATION~1/NUTCROOT/bin/x11:/cygdrive/c/
PROGRA~1/RATIONAL/RATION~1/NUTCROOT/mksnt:.:/cygdrive/c/Java/jdk1.4.0/bin:/c
ygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/
cygdrive/c/PROGRA~1/ULTRAE~1:/cygdrive/c/Program
Files/Rational/common:/cygdrive/c/Program
Files/Rational/ClearQuest:/cygdrive/c/Program
Files/Rational/Rose/TopLink/:/cygdrive/c/Program Files/Rational/Rational
Test:/cygdrive/c/Java/JBuilder6/bin:/usr/bin'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PIPESTATUS=([0]="0" [1]="127")
PPID=1012
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='x86 Family 6 Model 7 Stepping 2, GenuineIntel'
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0702
PROGRAMFILES='C:\Program Files'
PROMPT='$P$G'
PS1='\s-\v\$ '
PS2='> '
PS4='+ '
PWD=/
QTJAVA='"C:\Program Files\Java\j2re1.4.0\QTJava.zip"'
RATL_RTHOME='C:\Program Files\Rational\Rational Test'
ROOTDIR='C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT'
RQAHOME='C:\Program Files\Rational\Rational Test\QualityArchitect'
SHELL='\bin\bash.exe'
SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comment
s:emacs
SHLVL=1
SYSTEMDRIVE=C:
SYSTEMROOT='C:\WINNT'
TEMP=/cygdrive/c/DOCUME~1/ROBERT~1/LOCALS~1/Temp
TERM=vt102
TERMCAP='\cygwin\etc\termcap'
TERMINFO='\cygwin\lib\terminfo'
TMP=/cygdrive/c/DOCUME~1/ROBERT~1/LOCALS~1/Temp
TMPDIR=/cygdrive/c/DOCUME~1/ROBERT~1/LOCALS~1/Temp
UID=1000
USERDOMAIN=DIJONG
USERNAME='Robert Mark Bram'
USERPROFILE='C:\Documents and Settings\Robert Mark Bram'
WINDIR='C:\WINNT'
WINDOWID=4194318
_=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]