Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-SBRS: None Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: RE: Sould . (current dir) be in the PATH Date: Thu, 15 Sep 2005 19:34:38 +0200 Message-ID: <5629C3F943FB7F42BF6DBB5DAAC5610201DC493D@mucse204.muc.infineon.com> From: To: , X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j8FHZgDf004091 Hi, '.' is not in the PATH due to security reasons on most business setups. I do not know if this is due to security against external threads or the user himself... But if you can handle it... Otherwise you should overwrite it in your .bashrc or .rc. Something like(!) PATH="`echo $PATH | sed 's/:\.:/:/'" should work... Rg, Tino ________________________________________________________ Tino Engel (MP PDT CS CADF) tel.: +49 89 234 28059 Infineon Technologies AG mobile: +49 176 21137381 Room: Mch B3253 -----Original Message----- From: cygwin-owner AT cygwin DOTcom [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Morten Kjarulff Sent: Thursday, September 15, 2005 5:10 PM To: cygwin AT cygwin.com Subject: Sould . (current dir) be in the PATH Hi, I just discovered that . (current directory) is in my PATH. I installed cygwin on my new laptop some weeks ago. I don't think . was in my PATH on my old PC. First I thought it came from my windows PATH, but it does not. Is . normally in the PATH (it was not on a few solaris systems I just checked, but that does not prove anything). It is even twice in my PATH, as the last entry, and just after /cygdrive/c/Infoprint. /Morten D:\mkj\bin>type cygwin.bat @rem 2004-Dec-10 09:36:01 MKJ Based on cygwin.bat from installation @rem Make sure we are in a new windows shell @if X%BEENHERE% == XBEENHERE goto :BEENHERE @%COMSPEC% /c set BEENHERE=BEENHERE ^& %0 %* @exit /b %ERRORLEVEL% :BEENHERE @set BEENHERE= @rem Where is CYGWIN installed @set MYCYGWINROOT=D:\cygwin @rem Set HOME @set HOME=%MKJPATH%\mkj @rem Start up command @set MYCYGWINARG= @if not X%1 == X ( set MYCYGWINARG=-c "eval \"$MYCYGWINCMD\"" set MYCYGWINCMD=%* ) @rem Set options @set CYGWIN= @rem Ctrl-C does not perculate to cmd.exe if 'tty' is set @rem X2 traps if 'tty' is set @rem @set CYGWIN=tty @rem Pretent we are CHERE, to avoid changing to HOME dir @set CHERE_INVOKING=Y @rem Now go @%MYCYGWINROOT%\bin\bash -l %MYCYGWINARG% D:\mkj\bin>set path Path=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:\Program F iles\Microsoft Visual Studio .NET 2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET 20 03\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 20 03\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1 \bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\ ;C:\PROGRAM FILES\THINKPAD\UTILITIES;C:\WINDOWS\system32;C:\WINDOWS;C:\Merant\DI MENS~1\8.0\PROG;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint Select;C :\Utilities;C:\Notes;C:\Program Files\XLView\;C:\lotus\compnent\;C:\Program File s\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\WINDOWS\D ownloaded Program Files;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\AT I Technologies\ATI Control Panel;C:\Program Files\CA\Unicenter Software Delivery \BIN;C:\CA_APPSW;C:\Program Files\CA\SharedComponents\CAM\bin;C:\Program Files\H ost Integration Server\system;C:\Program Files\Microsoft SQL Server\80\Tools\BIN N;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\ c\samples\bin;C:\Program Files\WinZip;C:\Infoprint;;d:\mkj\bin;d:\mkj\xmkj;d:\mk j\x;d:\mkj\regina; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH D:\mkj\bin>.\cygwin.bat mkj008 AT WDKCPHMKJ1L ~/bin $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Common7/IDE:/cygdrive/c/Program Files/Microsoft Visual S tudio .NET 2003/VC7/BIN:/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2 003/Common7/Tools:/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Co mmon7/Tools/bin/prerelease:/cygdrive/c/Program Files/Microsoft Visual Studio .NE T 2003/Common7/Tools/bin:/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/bin:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322: /cygdriv e/c/Program Files/IBM/WebSphere MQ/Java/lib:/cygdrive/c/Program Files/CA/Dcs/DMS cripting/:/cygdrive/c/Program Files/CA/DCS/CAWIN/:/cygdrive/c/PROGRAM FILES/THIN KPAD/UTILITIES:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdriv e/c/Mera nt/DIMENS~1/8.0/PROG:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Progr am Files /IBM/Infoprint Select:/cygdrive/c/Utilities:/cygdrive/c/Notes:/cygdrive/c/Progra m Files/XLView/:/cygdrive/c/lotus/compnent/:/cygdrive/c/Program Files/IBM/Person al Communications/:/cygdrive/c/Program Files/IBM/Trace Facility/:/cygdrive/c/WIN DOWS/Downloaded Program Files:/cygdrive/c/Program Files/Intel/Wireless/Bin/:/cyg drive/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program Fil es/CA/Unicenter Software Delivery/BIN:/cygdrive/c/CA_APPSW:/cygdrive/c/Program F iles/CA/SharedComponents/CAM/bin:/cygdrive/c/Program Files/Host Integration Serv er/system:/cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/BINN:/cygdrive /c/Program Files/IBM/WebSphere MQ/bin:/cygdrive/c/Program Files/IBM/WebSphere MQ /tools/c/samples/bin:/cygdrive/c/Program Files/WinZip:/cygdrive/c/Infoprint:.:/c ygdrive/d/mkj/bin:/cygdrive/d/mkj/xmkj:/cygdrive/d/mkj/x:/cygdrive/d/mkj /regina: . mkj008 AT WDKCPHMKJ1L ~/bin $ cygcheck -s -v -r > cygcheck.out mkj008 AT WDKCPHMKJ1L ~/bin $ (See attached file: cygcheck.out) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/