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 Message-ID: <008b01c2c4f8$6fdd9000$0b01a8c0@w2k30g> From: "David Christensen" To: Subject: Cygwin 1.3.19 Windows 2000 Professional SP3 bash $home /usr/bin/%USERPROFILE% Date: Sat, 25 Jan 2003 21:03:33 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_007E_01C2C4B5.388F3830" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Note-from-DJ: This may be spam ------=_NextPart_000_007E_01C2C4B5.388F3830 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cygwin AT cygwin DOT com: I have been using Cygwin on Win2k Pro SP3 for a while now, and really like it. Today, I downloaded and installed Dia Win32 Installer. The next time I started Bash, it was broken -- the prompt spans two (three?) lines, Bash starts in the wrong directory, and $HOME environment is wrong: dpchrist AT w2k30g ~ $ pwd /usr/bin/%USERPROFILE% dpchrist AT w2k30g ~ $ echo $HOME /usr/bin/%USERPROFILE% Initially, I thought this was a Dia problem. Uninstalling Dia did not fix it. I tried reinstalling Bash with no luck. I don't know how to get at the Cygwin DLL, so I couldn't try that. Moving aside the C:\cygwin directory and reinstalling Cygwin didn't fix it. Searching the archive for this mailing list, my query of "/usr/bin/%USERPROFILE%" was converted into "usr and (bin or bins) and userprofile and ", yielding 644 hits. I was unable to figure out how to search on an exact phrase. An advanced Google search was more productive: http://www.cygwin.com/ml/cygwin/2002-11/msg00764.html http://www.cygwin.com/ml/cygwin/2002-11/msg00766.html Browsing the archives for this mailing list and searching back through the months for "/usr/bin/%USERPROFILE%" with my browser, I found the following in November of 2002: http://cygwin.com/ml/cygwin/2002-11/msg00809.html http://cygwin.com/ml/cygwin/2002-11/msg00766.html http://cygwin.com/ml/cygwin/2002-11/msg00764.html http://cygwin.com/ml/cygwin/2002-11/msg00761.html http://cygwin.com/ml/cygwin/2002-11/msg00759.html Per the posting by Michael Caplan of Thu, 14 Nov 2002 14:23:52 -0500, I am experiencing the same problem. His Cygnus DLL was 1.3.15, mine is 1.3.19. I haven't compared versions of the various packages. Per the posting by Harig, Mark A. of Date: Thu, 14 Nov 2002 15:17:21 -0500, I have attached the output of "cygcheck -s" as a file (cygcheck.txt) rather than including it here. Per the posting of Harig, Mark A. of Date: Thu, 14 Nov 2002 15:30:12 -0500: 1. Output of the "id" command is as follows: dpchrist AT w2k30g ~ $ id uid=1000(dpchrist) gid=513(None) groups=513(None),544(Administrators),545(Users) Output of the "id -un" command is as follows: dpchrist AT w2k30g ~ $ id -un dpchrist 2. I have made no changes whatsoever to the default Cygwin install of today, including /etc/passwd. Permissions and ownership of this file are as follows: dpchrist AT w2k30g ~ $ ls -l /etc/passwd -rw-r--r-- 1 dpchrist None 749 Jan 25 18:57 /etc/passwd Permission and ownership of /etc is as follows: dpchrist AT w2k30g ~ $ ls -ld /etc drwxr-xr-x 5 dpchrist None 0 Jan 25 18:53 /etc 3. I am launching Bash using the desktop shortcut created by Cygwin setup. This shortcut points to C:\cygwin\cygwin.bat. Permissions and ownership are as follows: dpchrist AT w2k30g ~ $ ls -l /cygwin.bat -rwxr-xr-x 1 dpchrist None 57 Jan 25 18:57 /cygwin.bat I have made no changes whatsoever to this file, which contains: @echo off C: chdir C:\cygwin\bin bash --login -i I have made no changes whatsoever to /etc/profile, also attached. Permissions and ownerships are as follows: dpchrist AT w2k30g ~ $ ls -l /etc/profile -rw-r--r-- 1 dpchrist None 386 Jan 25 18:57 /etc/profile Bash is not finding my home directory (/home/dpchrist), so I am omitting ~/.bashrc, ~/.bash_profile, and ~/.profile. Per the posting by Michael Caplan of Thu, 14 Nov 2002 16:08:25 -0500, I am leery of hacking /etc/profile and have not done so. The default file installed by Cygwin setup is attached for those so inclined. Per the posting of Harig, Mark A. of Date: Fri, 15 Nov 2002 11:50:39 -0500: 1. Permissions and ownership of /etc/password are as follows: dpchrist AT w2k30g ~ $ ls -l /etc/passwd -rw-r--r-- 1 dpchrist None 749 Jan 25 18:57 /etc/passwd The relevant line is as follows: dpchrist:unused_by_nt/2000/xp:1000:513:David Christensen,U-W2K30G\dpchrist,S-1-5-21-1229272821-1202660629-1060284298- 1000:/home/dpchrist:/bin/bash The last two entries look correct. 2. Permissions and ownership of /etc are given above. Permissions are already 0755. Can someone please tell me how to fix the problem? TIA, David Christensen dpchrist AT holgerdanske DOT com ------=_NextPart_000_007E_01C2C4B5.388F3830 Content-Type: text/plain; name="cygcheck.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cygcheck.txt" Cygwin Win95/NT Configuration Diagnostics Current System Time: Sat Jan 25 19:38:34 2003 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `C:\cygwin\bin\%USERPROFILE%' MAKE_MODE = `unix' PWD = `/usr/bin/%USERPROFILE%' USER = `dpchrist' Use `-r' to scan registry a: fd N/A N/A c: hd FAT32 29283Mb 67% CP UN d: cd N/A N/A e: hd FAT32 76321Mb 79% CP UN 80G C:\cygwin / user textmode C:\cygwin/bin /usr/bin user textmode C:\cygwin/lib /usr/lib user textmode . /cygdrive user textmode,cygdrive . /cygdrive user textmode,cygdrive Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\sh.exe 19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll 58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll 929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll 127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll 50k 2002/03/12 C:\cygwin\bin\cygz.dll 885k 2003/01/24 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.3.19 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 71 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Thu Jan 23 21:31:48 EST 2003 CVS tag: cygwin-1-3-19-1 Shared id: cygwin1S3 Cygwin Package Information Package Version _update-info-dir 00126-1 ash 20020731-1 base-files 1.1-1 base-passwd 1.0-1 bash 2.05b-8 bzip2 1.0.2-2 cygwin 1.3.19-1 diff 1.0-1 diffutils 2.8.1-1 fileutils 4.1-1 findutils 4.1.7-4 gawk 3.1.1-5 gdbm 1.8.0-4 grep 2.5-1 gzip 1.3.3-4 libbz2_1 1.0.2-2 libiconv2 1.8-2 libintl1 0.10.40-1 libintl2 0.11.5-1 libncurses5 5.2-1 libncurses6 5.2-8 libreadline4 4.1-2 libreadline5 4.3-2 login 1.7-1 ncurses 5.2-8 pcre 3.7-1 readline 4.3-2 sed 4.0.5-1 sh-utils 2.0.15-3 tar 1.13.25-1 termcap 20020930-1 terminfo 5.2-3 texinfo 4.2-4 textutils 2.0.21-1 which 1.5-1 zlib 1.1.4-1 Use -h to see help about each section ------=_NextPart_000_007E_01C2C4B5.388F3830 Content-Type: application/octet-stream; name="profile.dat" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="profile.dat" PATH=3D"/usr/local/bin:/usr/bin:/bin:$PATH"=0A= =0A= USER=3D"`id -un`"=0A= =0A= # Set up USER's home directory=0A= if [ -z "$HOME" ]; then=0A= HOME=3D"/home/$USER"=0A= fi=0A= =0A= if [ ! -d "$HOME" ]; then=0A= mkdir -p "$HOME"=0A= fi=0A= =0A= export HOME USER=0A= =0A= for i in /etc/profile.d/*.sh ; do=0A= if [ -f $i ]; then=0A= . $i=0A= fi=0A= done=0A= =0A= export MAKE_MODE=3Dunix=0A= export PS1=3D'\[\033]0;\w\007=0A= \033[32m\]\u@\h \[\033[33m\w\033[0m\]=0A= $ '=0A= =0A= cd "$HOME"=0A= ------=_NextPart_000_007E_01C2C4B5.388F3830 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_007E_01C2C4B5.388F3830--