Re: acego, param, char field with spaces
Posted in 1995
Topics: General Discussion
>>>>> On 08 Feb 1995 18:14:19 GMT, C.A.Hopkins@cs.bham.ac.uk (Ceri Hopkins) said: [trouble with sacego and command line parameters] Of course what I meant was sacego, acego being a local version compiled with various user functions. Problem was avoided by redefining input parameters as "prompts" and doing the following with shell variables #!/bin/sh ... sacego -q myreport <<EOR > tempfile $PROMPTVAL EOF [detail follows] Ceri> I would like to pass a char type argument to acego with that argument Ceri> defined as a command line parameter. Ceri> The basics work, except where there is a space in the char field Ceri> input, e.g Ceri> % acego -q myreport "12345" > tempfile Ceri> but not Ceri> % acego -q myreport "AB 12345" > tempfile Ceri> No matter how I try to escape the quotes it fails Ceri> Anyone have any suggestions? Ceri> When i put \\"AB 12345\\" the error returned is failure to run report Ceri> control file "12345".arc" ! Other instances appear to run the Ceri> report on the argument AB. Ceri> I shall investigate further, but is there something obvious I am Ceri> missing? Ceri> Thanks in advance, Ceri> Ceri Ceri> -- Ceri> Ceri Hopkins Ceri> School of Computer Science C.A.Hopkins@Cs.Bham.Ac.Uk Ceri> University of Birmingham Tel. +44-21-414-3743 -- Ceri Hopkins School of Computer Science C.A.Hopkins@Cs.Bham.Ac.Uk University of Birmingham Tel. +44-21-414-3743