Date: Tue, 03 Apr 2001 18:52:02 -0400 To: C From: Doug McGarrett <dougmack@i-2000.com> Subject: Re: [SLE] is # or ! a comment? Cc: suse-linux-e@suse-linux.com
There is one set of programs I know of that uses ! as a comment character, and there are versions of this for DOS, Windows, and Unix--Sun systems, I believe, but am not sure. Those programs are from EESOF, or what is now Agilent, and they are (for DOS) Touchstone (touchstn.exe) and for Windows, Libra for Windows. There was a graphical version for Unix as far back as about 10 years ago, roughly. AAMOF, the graphical version which became Advanced Design System first showed up on a Unix machine. What it is, is a very powerful (and very expensive) design and analysis tool for RF engineering. The netlists, and the s?p parameter files use the ! as a comment. The latest versions of the tool have been renamed Advanced Design System and are only available in gui format, so you may never see a netlist anymore. (PHOOEY--I LIKE netlists!) You will however, see s-parameter files, unless you're so lucky that all the parts you need have been characterised by Agilent already! --doug
At 14:46 04/03/2001 +0100, you wrote:
James McCreery wrote:
As I understood things, lines in a script that begin with a "#" character are ignored and can be used for comments. I'm confused though because I see other scripts that seem to use the "!" character to comment-out lines and use the "#" character to begin lines containing conditional syntax (if, endif, else etc). What's going on?
At first I had no idea what you were on about... and I'm still not totally clear. Can you give me an example of a script that uses the ! character?
The '#' character is usually used to comment out lines/parts of lines in most scripts (e.g. bash, perl, etc.). When used in 'C' source files (which aren't scripts) they are use to give the preprocessor commands (e.g. #define, #ifdef, #endif, etc.).
To be honest, I can't think of anything of the top of my head which, in UNIX, uses '!' as a comment character...
Bye, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/support/faq