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: <41504.12.22.157.254.1060991894.squirrel@mail3411.b0.com> Date: Fri, 15 Aug 2003 18:58:14 -0500 (CDT) Subject: BUG: base-files-2.0.2 quoting bug and path helpers From: "mike808" To: , , X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: Reply-To: mike808 AT users DOT sourceforge DOT net MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/