This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
When csh scripts have DOS line endings, tcsh 6.12.00 sometimes parses them incorrectly. This seems to happen with scripts that have while loops, once the scripts get big enough. Converting the script to unix line endings fixes the problem. The attached script, cshbug, is about as small as it can be to show the problem. It needs to be run with a valid argument, in my case cshbug -inst /usr/local/IMOD The standard error output is: =: Command not found. The attached file bugout2 is the output from csh -v cshbug -inst /usr/local/IMOD After the first trip through the while loop, it jumps back up to the middle of a line before the loop: = "unsigned int" If the variable setting section of the script is made smaller, such as by removing the first 13 lines, the problem goes away. This problem has been present for the past year at least. David Mastronarde Boulder Laboratory for 3-D Electron Microscopy of Cells
Attachment:
cshbug
Description: Text document
Attachment:
bugout2
Description: Text document
Attachment:
cygcheck.out
Description: Text document
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |