[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error when script uses CRLF line endings w/ if stmt
From: |
Jan Schampera |
Subject: |
Re: Error when script uses CRLF line endings w/ if stmt |
Date: |
Fri, 05 Feb 2010 06:39:41 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090707) |
driscoll@cs.wisc.edu schrieb:
> Some of the time, using CRLF line endings cause syntax errors
> in Bash scripts ("unexpected end of file").
>
> This problem shows up on Bash 4.1 on Linux, Bash 3.2 on Linux,
> and Bash 3.2 on Cygwin (where I first noticed it).
Normal. Though I don't know how to treat the Cygwin case, since the
underlying platform uses \r\n anyways. But the rest: Simply don't mix
UNIX and Windows text.
- Error when script uses CRLF line endings w/ if stmt, driscoll, 2010/02/04
- Re: Error when script uses CRLF line endings w/ if stmt,
Jan Schampera <=
- Re: Error when script uses CRLF line endings w/ if stmt, Evan Driscoll, 2010/02/05
- Re: Error when script uses CRLF line endings w/ if stmt, Pierre Gaston, 2010/02/05
- Re: Error when script uses CRLF line endings w/ if stmt, Evan Driscoll, 2010/02/05
- Message not available
- Re: Error when script uses CRLF line endings w/ if stmt, Jan Schampera, 2010/02/05
- Re: Error when script uses CRLF line endings w/ if stmt, Andreas Schwab, 2010/02/05
- Message not available
- Re: Error when script uses CRLF line endings w/ if stmt, Jan Schampera, 2010/02/05
- Re: Error when script uses CRLF line endings w/ if stmt, Greg Wooledge, 2010/02/05
Message not available
Re: Error when script uses CRLF line endings w/ if stmt, Eric Blake, 2010/02/05