| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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: | <41993231.9040704@comcast.net> |
| Date: | Mon, 15 Nov 2004 17:48:17 -0500 |
| From: | Aaron Conole <conole AT comcast DOT net> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 |
| MIME-Version: | 1.0 |
| To: | kynn AT panix DOT com |
| CC: | cygwin AT cygwin DOT com |
| Subject: | Re: /etc/profile error |
| References: | <200411152238 DOT iAFMc2u03761 AT panix3 DOT panix DOT com> |
| In-Reply-To: | <200411152238.iAFMc2u03761@panix3.panix.com> |
| X-IsSubscribed: | yes |
kynn AT panix DOT com wrote:
>Hi. I just installed Cygwin on an IBM laptop running Windows XP.
>Whenever I bring up a Cygwin shell, I get the following error:
>
> bash: /etc/profile: line 196: syntax error: unexpected end of file
>
>I don't see any problem with /etc/profile:
>
> 190 echo "mkpasswd -l -d > /etc/passwd"
> 191 echo "mkgroup -l -d > /etc/group"
> 192 echo
> 193 echo "This message is only displayed once (unless you recreate /etc/group)"
> 194 echo "and can be safely ignored."
> 195
> 196 # only display the above once
> 197 cp -f /etc/group ${HOME}/group.mkgroup_l_d \
> 198 && ( [ -w /etc/group ] || chmod --silent a+w /etc/group ; )\
> 199 && sed -e 's/^mkgroup_l_d/mkgroup-l-d/' ${HOME}/group.mkgroup_l_d > /etc/group \
>
>In fact, this /etc/profile file is identical to the /etc/profile files
>in other Cygwin installations I have done recently, and do not
>generate the error quoted above.
>
>Can someone tell me how to fix this problem?
>
>Thanks!
>
>kj
>
>
>
>--
>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/
>
>
>
>
Maybe it's just me, but this line:
199 && sed -e 's/^mkgroup_l_d/mkgroup-l-d/' ${HOME}/group.mkgroup_l_d > /etc/group \
looks strikingly suspicious. Are there lines following 199 or does that end? If you notice, at the end of the line is the \ character which tells the interpreter to expect another line. if you're missing it, it could be the cause of an unexpected EOF error.
Aaron
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |