MacOS - odd behaviour - BBEdit and (load) - a UTF8 issue?
Posted: Fri Mar 30, 2007 4:09 pm
Something weird was going on when I used (load) in a Terminal to load a file that I'd created using BBEdit. newLISP was executing the statements at the top of the file (i hadn't included the #!/usr/bin/newlisp line - I didn't think files to be loaded needed it), even though I'd preceded them with a semicolon. It took a long time for me to discover this - it was after I'd commented out a (context ...) command and noticed the errors relating to that context were still appearing.
I investigated further, and I got the problem to go away if I changed the document encoding from 'UTF8' to 'UF8 - no BOM', or if I added the #!/usr/bin/newlisp line at the top.
The reason I didn't put #!/usr/bin/newlisp at the top is because when i loaded a file with that in it I also got a new symbol created, called '#!/usr/bin/newlisp'... Which didn't seem right...
I investigated further, and I got the problem to go away if I changed the document encoding from 'UTF8' to 'UF8 - no BOM', or if I added the #!/usr/bin/newlisp line at the top.
The reason I didn't put #!/usr/bin/newlisp at the top is because when i loaded a file with that in it I also got a new symbol created, called '#!/usr/bin/newlisp'... Which didn't seem right...