From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mod.civil.su.OZ.AU ([129.78.142.6]) by hawkwind.utcs.toronto.edu with SMTP id <2784>; Tue, 9 Mar 1993 06:37:45 -0500 Received: by mod.civil.su.oz.au id <28686>; Tue, 9 Mar 1993 21:37:18 +1000 From: John (Most modern computers would break if you stood on them) Mackin Date: Tue, 9 Mar 1993 06:32:13 -0500 To: The rc Mailing List Subject: backquote poser Message-ID: <199303092132.8960.rc.baful@civil.su.oz.au> X-Face: 39seV7n\`#asqOFdx#oj/Uz*lseO_1n9n7rQS;~ve\e`&Z},nU1+>0X^>mg&M.^X$[ez>{F k5[Ah<7xBWF-@-ru?& @4K4-b`ydd^`(n%Z{ I was just writing an rc script where I wanted to assign a variable the value of the output of the "domainname" command. This command might not be present on the system the script is being run on; if not, I wanted the variable assigned the null list, and for no error message about domainname not being found to be echoed onto the script's standard error. The best thing I could come up with was: domain = ` { exec >[2] /dev/null; domainname } Anyone got a cleaner idea? For some reason it seems to me it should be able to be done more neatly. I guess I mainly don't like needing a semicolon. OK, John.