On Sun, Apr 21, 2002 at 11:08:33AM +0100, Dave Walker wrote: > There is no standard way to get a file re-directed to be treated as a > command line in c68. > > You can do file level re-direction and then process the input as though it > comes from "stdin". The standard c68 start-up code will handle attaching > the input as stdin, but the processing of this input so that it can be an > alternative to the command line has to be implemented within the program > itself and is not a standard feature of the c68 start-up code. > > The main reason that this is not done is simply because there is no agreed > syntax that specifies the parameters for a command line are coming from a > file. It would be relatively trivial to enhance the C68 start-up code to > implement such a feature given an agreement on the syntax for recognising > the command line re-direction to a file for parameters. The idea sounds > like a good one, so if anyone has suggestions on a proposed syntax I am > happy to consider them for inclusion into the standard c68 build. Is there > any standard for this in the Posix/Unix world as I have not come across such > a feature?
that sounds much like a 'xargs' job, xargs is part of recent findutils so maybe it has already been ported? In any case it should be rather trivial to port - except that we may get problems with very big commandlines than. Richard