This is the mail archive of the
mailing list for the Cygwin project.
Shell script - is this expected behaviour?
- From: Gary <listgj-cygwin at yahoo dot co dot uk>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Nov 2011 10:00:46 +0100
- Subject: Shell script - is this expected behaviour?
If I have a shell script which reads a file which does not have an end
of line character at the end if it's only line, it does not read
| exec 10<&0
| exec < $fileName
| while read configLine
| exec 0<&10 10<&-
| echo $retVal
| exit 0
If it's expected behaviour, what's the workaround?
Gary Please do NOT send me 'courtesy' replies off-list.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple