From: yossi k. <yk...@ya...> - 2004-03-29 14:22:05
|
Hi, You are right. When I run it (cscope -b -k -q -iprj.files) from cygwin terminal it works without a problem but when I run it from dos terminal it fails the -q option. I do have full cygwin installed on my PC however, I believe that there is something different with the environment set-up that cygwin sets when it invokes then DOS (command prompt) sets when it invokes. I try to run SET command from DOS and CYGWIN but could not find the different. So the only way to use the q option is to build cscope database running cscope -b -k -q -iprj.files from CYGWIN terminal and then run cscope d from DOS terminal. Does anyone know what is the different between CYGWIN environment to DOS environment? Thanks a lot. Attached are the results of SET command: From CYGWIN TERMINAL: !C:='C:\cygwin\bin' ALLUSERSPROFILE='C:\Documents and Settings\All Users' APPDATA='C:\Documents and Settings\jkhalon.R&D_SOFTWARE\Application Data' BASH=/usr/bin/bash BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="3" [4]="release" [5]="i686-pc-cygwin") BASH_VERSION='2.05b.0(3)-release' CLASSPATH='.;c:\Corel\Office7\Shared\Barista;c:\Corel\Office7\Shared\TrueDoc' COLUMNS=80 COMMONPROGRAMFILES='C:\Program Files\Common Files' COMPUTERNAME=KHALONJ COMSPEC='C:\WINNT\system32\cmd.exe' CSCOPE_EDITOR=vi DIRSTACK=() DISKEEPERICON='C:\Program Files\Executive Software\Diskeeper Home Edition\' DJGPP='c:\DJGPP\DJGPP.ENV' EDITOR='c:\editor\vim\vim61\vim' EUID=1002 GROUPS=() GS_FONTPATH=.:/usr/share/lilypond/1.6.0/fonts/type1:/usr/share/lilypond/1.6.0/fonts/type1:/usr/share/texmf/fonts/type1:/usr/share/texmf/fonts/type1/adobe:/usr/share/texmf/fonts/type1/adobe/utopia:/usr/share/texmf/fonts/type1/bitstrea:/usr/share/texmf/fonts/type1/bitstrea/charter:/usr/share/texmf/fonts/type1/bluesky:/usr/share/texmf/fonts/type1/bluesky/cm:/usr/share/texmf/fonts/type1/bluesky/cmextra:/usr/share/texmf/fonts/type1/bluesky/cyrillic:/usr/share/texmf/fonts/type1/bluesky/euler:/usr/share/texmf/fonts/type1/bluesky/symbols:/usr/share/texmf/fonts/type1/hoekwater:/usr/share/texmf/fonts/type1/hoekwater/context:/usr/share/texmf/fonts/type1/hoekwater/mflogo:/usr/share/texmf/fonts/type1/hoekwater/rsfs:/usr/share/texmf/fonts/type1/hoekwater/stmaryrd:/usr/share/texmf/fonts/type1/hoekwater/wasy:/usr/share/texmf/fonts/type1/public:/usr/share/texmf/fonts/type1/public/antp:/usr/share/texmf/fonts/type1/public/antt:/usr/share/texmf/fonts/type1/public/belleek:/usr/share/texmf/fonts/type1/pub lic/cmcyr:/usr/share/texmf/fonts/type1/public/cs:/usr/share/texmf/fonts/type1/public/marvosym:/usr/share/texmf/fonts/type1/public/mathpazo:/usr/share/texmf/fonts/type1/public/omega:/usr/share/texmf/fonts/type1/public/pl:/usr/share/texmf/fonts/type1/public/pxfonts:/usr/share/texmf/fonts/type1/public/qfonts:/usr/share/texmf/fonts/type1/public/txfonts:/usr/share/texmf/fonts/type1/public/xypic:/usr/share/texmf/fonts/type1/urw:/usr/share/texmf/fonts/type1/urw/avantgar:/usr/share/texmf/fonts/type1/urw/bookman:/usr/share/texmf/fonts/type1/urw/courier:/usr/share/texmf/fonts/type1/urw/helvetic:/usr/share/texmf/fonts/type1/urw/ncntrsbk:/usr/share/texmf/fonts/type1/urw/palatino:/usr/share/texmf/fonts/type1/urw/symbol:/usr/share/texmf/fonts/type1/urw/times:/usr/share/texmf/fonts/type1/urw/zapfchan:/usr/share/texmf/fonts/type1/urw/zapfding:.:/usr/share/lilypond/1.6.0/fonts/type1:/usr/share/texmf/fonts/type1:/usr/share/texmf/fonts/type1/adobe:/usr/share/texmf/fonts/type1/adobe/utopia:/usr/share/te xmf/fonts/type1/bitstrea:/usr/share/texmf/fonts/type1/bitstrea/charter:/usr/share/texmf/fonts/type1/bluesky:/usr/share/texmf/fonts/type1/bluesky/cm:/usr/share/texmf/fonts/type1/bluesky/cmextra:/usr/share/texmf/fonts/type1/bluesky/cyrillic:/usr/share/texmf/fonts/type1/bluesky/euler:/usr/share/texmf/fonts/type1/bluesky/symbols:/usr/share/texmf/fonts/type1/hoekwater:/usr/share/texmf/fonts/type1/hoekwater/context:/usr/share/texmf/fonts/type1/hoekwater/mflogo:/usr/share/texmf/fonts/type1/hoekwater/rsfs:/usr/share/texmf/fonts/type1/hoekwater/stmaryrd:/usr/share/texmf/fonts/type1/hoekwater/wasy:/usr/share/texmf/fonts/type1/public:/usr/share/texmf/fonts/type1/public/antp:/usr/share/texmf/fonts/type1/public/antt:/usr/share/texmf/fonts/type1/public/belleek:/usr/share/texmf/fonts/type1/public/cmcyr:/usr/share/texmf/fonts/type1/public/cs:/usr/share/texmf/fonts/type1/public/marvosym:/usr/share/texmf/fonts/type1/public/mathpazo:/usr/share/texmf/fonts/type1/public/omega:/usr/share/texmf/fonts/type1 /public/pl:/usr/share/texmf/fonts/type1/public/pxfonts:/usr/share/texmf/fonts/type1/public/qfonts:/usr/share/texmf/fonts/type1/public/txfonts:/usr/share/texmf/fonts/type1/public/xypic:/usr/share/texmf/fonts/type1/urw:/usr/share/texmf/fonts/type1/urw/avantgar:/usr/share/texmf/fonts/type1/urw/bookman:/usr/share/texmf/fonts/type1/urw/courier:/usr/share/texmf/fonts/type1/urw/helvetic:/usr/share/texmf/fonts/type1/urw/ncntrsbk:/usr/share/texmf/fonts/type1/urw/palatino:/usr/share/texmf/fonts/type1/urw/symbol:/usr/share/texmf/fonts/type1/urw/times:/usr/share/texmf/fonts/type1/urw/zapfchan:/usr/share/texmf/fonts/type1/urw/zapfding: GS_LIB=/usr/share/lilypond/1.6.0/ps:/usr/share/lilypond/1.6.0/ps: HISTFILE=/home/jkhalon/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/home/jkhalon HOMEDRIVE=C: HOMEPATH='\Documents and Settings\jkhalon.R&D_SOFTWARE' HOSTNAME=KHALONJ HOSTTYPE=i686 IFS=$' \t\n' INCLUDE='c:\program files\devstudio\vc\include;c:\program files\devstudio\vc\atl\include;c:\program files\devstudio\vc\mfc\include;%include%' LD_LIBRARY_PATH=/cygdrive/c/Corel/Office7/Shared/TrueDoc/Bin LIB='c:\program files\devstudio\vc\lib;c:\program files\devstudio\vc\mfc\lib;%lib%' LINES=25 LOGONSERVER='\\ZEPHYR' MACHTYPE=i686-pc-cygwin MAILCHECK=60 MAKE_MODE=unix MANPATH=:/usr/ssl/man:/usr/ssl/man MSDEVDIR='C:\Program Files\DevStudio\SharedIDE' NODENAME=KHALONJ NUMBER_OF_PROCESSORS=2 OLDPWD=/cygdrive/c OPENWINHOME=/usr/X11R6 OPTERR=1 OPTIND=1 OS=Windows_NT OS2LIBPATH='C:\WINNT\system32\os2\dll;' OSTYPE=cygwin PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Common Files/Adaptec Shared/System:/cygdrive/c/csc32/bin:/usr/bin:/cygdrive/c/gvim6x/vim/vim61:/cygdrive/c/bin:/cygdrive/c/Program Files/Rational/ClearCase/bin:/cygdrive/c/Program Files/Rational/common:/cygdrive/c/Program Files/Rational/ClearQuest:/cygdrive/c/djgpp/bin:/cygdrive/c/OFFICE/SHARED/WPC20:/cygdrive/c/Program Files/Executive Software/Diskeeper Home Edition/:/cygdrive/c/VXIPNP/WinNT/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/Bin:/cygdrive/c/program files/devstudio/sharedide/bin/ide:/cygdrive/c/program files/devstudio/sharedide/bin:/cygdrive/c/program files/devstudio/vc/bin:/cygdrive/c/editor:/cygdrive/c/bin:.:/cygdrive/c/Corel/Office7/Shared/TrueDoc/Bin:/usr/X11R6/bin' PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PIPESTATUS=([0]="0") PPID=1 PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER='x86 Family 15 Model 2 Stepping 4, GenuineIntel' PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0204 PROGRAMFILES='C:\Program Files' PROMPT='$P$G' PS1='KHALONJ!!$PWD>' PS2='> ' PS4='+ ' PWD=/cygdrive/c/csc32 RATL_RTHOME='C:\Program Files\Rational\Rational Test' SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=1 SYSTEMDRIVE=C: SYSTEMROOT='C:\WINNT' TEMP='/cygdrive/c/DOCUME~1/JKHALO~1.R&D/LOCALS~1/Temp' TERM=cygwin TEXMF='{/usr/share/lilypond/1.6.0,{/usr/share/lilypond/1.6.0,/usr/share/texmf}}' TMP='/cygdrive/c/DOCUME~1/JKHALO~1.R&D/LOCALS~1/Temp' UID=1002 USER=jkhalon USERDOMAIN='R&D_SOFTWARE' USERNAME=jkhalon USERPROFILE='C:\Documents and Settings\jkhalon.R&D_SOFTWARE' VXIPNPPATH='C:\VXIPNP\' WINDIR='C:\WINNT' X11PATH=/usr/X11R6/bin _=csc32 datadir=/usr/share/lilypond/1.6.0 i=/etc/profile.d/openssl.sh SET results FROM DOS TERMINAL: ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\jkhalon.R&D_SOFTWARE\Application Data CLASSPATH=.;c:\Corel\Office7\Shared\Barista;c:\Corel\Office7\Shared\TrueDoc CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=KHALONJ ComSpec=C:\WINNT\system32\cmd.exe CSCOPE_EDITOR=c:\cscope\my_vi DiskeeperIcon=C:\Program Files\Executive Software\Diskeeper Home Edition\ DJGPP=c:\DJGPP\DJGPP.ENV EDITOR=c:\editor\vim\vim61\vim HOMEDRIVE=C: HOMEPATH=\Documents and Settings\jkhalon.R&D_SOFTWARE INCLUDE=c:\program files\devstudio\vc\include;c:\program files\devstudio\vc\atl\include;c:\program files\devstudio\vc\mfc\include;%include% LD_LIBRARY_PATH=c:\Corel\Office7\Shared\TrueDoc\Bin LIB=c:\program files\devstudio\vc\lib;c:\program files\devstudio\vc\mfc\lib;%lib% LOGONSERVER=\\ZEPHYR MSDevDir=C:\Program Files\DevStudio\SharedIDE NUMBER_OF_PROCESSORS=2 OS=Windows_NT Os2LibPath=C:\WINNT\system32\os2\dll; Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;c:\csc32\bin;c:\cygwin\bin;c:\gvim6x\vim\vim61;c:\bin;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearQuest;c:\djgpp\bin;C:\OFFICE\SHARED\WPC20;C:\Program Files\Executive Software\Diskeeper Home Edition\;C:\VXIPNP\WinNT\Bin;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\VC98\Bin;c:\program files\devstudio\sharedide\bin\ide;c:\program files\devstudio\sharedide\bin;c:\program files\devstudio\vc\bin;c:\editor;c:\bin;;c:\Corel\Office7\Shared\TrueDoc\Bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 4, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0204 ProgramFiles=C:\Program Files PROMPT=$P$G RATL_RTHOME=C:\Program Files\Rational\Rational Test SystemDrive=C: SystemRoot=C:\WINNT TEMP=C:\DOCUME~1\JKHALO~1.R&D\LOCALS~1\Temp TMP=C:\DOCUME~1\JKHALO~1.R&D\LOCALS~1\Temp USERDOMAIN=R&D_SOFTWARE USERNAME=jkhalon USERPROFILE=C:\Documents and Settings\jkhalon.R&D_SOFTWARE VXIPNPPATH=C:\VXIPNP\ windir=C:\WINNT --- Hans-Bernhard Broeker <br...@ph...> wrote: > On Fri, 26 Mar 2004, yossi khalon wrote: > > > Cscope -b -k -q -iprj.files > > And I am getting the following messages: > > > > cscope: -q option mismatch between command line > and > > old symbol databas > > This message is harmless. It's just saying that you > hadn't used -q mode > with this database before. > > > Invalid switch. > > This message is not from cscope. I suspect you > don't have enough Cygwin > tools installed, or your path is somehow mixed up. > You'll need a pretty > complete Cygwin installation for cscope to work. In > particular, you need > the GNU versions of 'env' and 'sort' first in your > $PATH for -q mode to > run. > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Cscope-devel mailing list > Csc...@li... > https://lists.sourceforge.net/lists/listinfo/cscope-devel __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |