Path: utzoo!mnetor!uunet!husc6!mailrus!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Ban the Cloud! (plus sugg. for Workbench) Message-ID: <8803090742.AA06118@cory.Berkeley.EDU> Date: 9 Mar 88 07:42:33 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 23 >for DOS files and >#! shell >... >workbench default tool, why invent another thing (assuming that we >have merged .icon files for time and space savings)? Because it doesn't have enough power! >And secondly, >this facility assumes that whatever program is being invoked recognizes ># as a comment character. Not everything does. The C compiler, for >example. AmigaDOS, if I'm not mistaken. You could change it from # to >... >Unless you work out a way to skip the first line when passing the file >to the program. Exactly! just pass it stdin Seek'd past the first line. The application (CLI, SHELL...) would never see it. If the file is not Seekable, use the default application. Unfortunetly, this will not work with BCPL files. I found out the hard way that BCPL doesn't like file handles passed to it which have been Seek()'d on. Don't ask me why. -Matt