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 From: "Patrick J. LoPresti" To: cygwin AT cygwin DOT com Subject: "too many arguments" error in /etc/profile Message-Id: <20030820185624.7C716E52E@egghead.curl.com> Date: Wed, 20 Aug 2003 14:56:24 -0400 (EDT) When starting a login shell using the current release of Cygwin, I get the error: bash: [: too many arguments I tracked this down to my group name having a space in it ("Domain Users"). Fix for /etc/profile is below. - Pat Date: 20 Aug 2003 14:56:24 -0400 Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- /etc/profile.orig 2003-08-20 14:52:09.000000000 -0400 +++ /etc/profile 2003-08-20 14:52:51.000000000 -0400 @@ -137,7 +137,7 @@ # a mistake (ie, don't email about it!), comment the # test out below. groupID=`id -ng` -if [ "mkpasswd" == ${groupID} -o "mkgroup" == ${groupID} -o "mkgroup_l_d" == ${groupID} ]; then +if [ "mkpasswd" == "${groupID}" -o "mkgroup" == "${groupID}" -o "mkgroup_l_d" == "${groupID}" ]; then echo "Your username or group hasn't been setup correctly." echo " This typically happens if you are a domain user" echo " (cygwin does not automatically create /etc/passwd or" -- 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/