From: SourceForge.net <no...@so...> - 2009-12-10 02:20:20
|
Bugs item #2903819, was opened at 2009-11-25 15:52 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2903819&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: lisp error >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: TheBeaNerd (thebeanerd) Assigned to: Sam Steingold (sds) Summary: return character (cygwin?) Initial Comment: There seems to be an issue with the return character generated by the following code (at least under cygwin). In particular, executing the form: (with-open-file (stream "test.sh" :direction :output) (format stream "#!/bin/sh~%~%") (format stream "echo \"howdy\"~%")) Then, at the shell: $> chmod +x test.sh $> ./test.sh ./test.sh line 2: $'\r' : command not found howdy Note the "command not found" message. This issue effects applications such as ACL2 built using CLISP under cygwin. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-12-10 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2009-11-25 16:05 Message: This bug report is now marked as "pending"/"invalid". This means that we think that the problem you report is not a problem with CLISP. Unless you - the reporter - act within 2 weeks, the bug will be permanently closed. Sorry about the inconvenience - we hope your silence means that you agree that this is not a bug in CLISP. ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2009-11-25 16:05 Message: this is not a bug. CUSTOM:*DEFAULT-FILE-ENCODING* defaults to :DOS on cygwin, so #\Newline is printed as "\r\n' (CRLF). try (with-open-file (stream "test.sh" :direction :output :external-format :unix) (format stream "#!/bin/sh~%~%echo \"howdy\"~%")) required reading: http://clisp.cons.org/impnotes/encoding.html#newline http://clisp.cons.org/impnotes/clhs-newline.html http://clisp.cons.org/impnotes/encoding.html#def-file-enc http://clisp.cons.org/impnotes/open.html#extfmt ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2903819&group_id=1355 |