This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
BUG: base-files-2.0.2 quoting bug and path helpers
- From: "mike808" <mike808 at users dot sourceforge dot net>
- To: <john dot r dot morrison at ntlworld dot com>, <cygwin at cygwin dot com>, <cygwin-apps at cygwin dot com>
- Cc: <mike808 at users dot sourceforge dot net>
- Date: Fri, 15 Aug 2003 18:58:14 -0500 (CDT)
- Subject: BUG: base-files-2.0.2 quoting bug and path helpers
- Reply-to: mike808 at users dot sourceforge dot net
Pkg: base-files-2.0.2
I see on cygwin-app list John has caught the bug with not quoting
${groupID}. 2.0.3 should be making its way to a mirror soon.
In the /etc/profile replacement, we find:
> if [ "mkpasswd" == "${groupID}" -o "mkgroup" == "${groupID}"
> -o "mkgroup_l_d" == "${groupID}" ]; then
On my Win2K system my cygwin user's group happens to be "Domain Users",
which has an embedded space in it, causing the non-quoted version to
barf on the syntax.
There's also a related bug, further up where you run the /etc/profile.d
scripts.
> # Run all of the profile.d scripts
> # Note that these are supplied by separate packages
> for i in /etc/profile.d/*.sh ; do
> if [ -f "$i" ]; then
> . "$i"
> fi
> done
Note the quotes around the "$i". If a file were named "run me.sh",
this block would also barf for the same reasons.
*****
NOTE: This bug has NOT been corrected in the base-files-2.0.3 release.
*****
Enjoy.
Regards,
Michael King/
--
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/