delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/19/13:40:57

X-Spam-Check-By: sourceware.org
Date: Wed, 19 Apr 2006 13:40:45 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
cc: Matthew Karas <lucidguppy AT yahoo DOT com>
Subject: Re: Cygwin, gawk, and serial ports.
In-Reply-To: <Pine.GSO.4.63.0604191332320.9185@access1.cims.nyu.edu>
Message-ID: <Pine.GSO.4.63.0604191337570.9185@access1.cims.nyu.edu>
References: <20060419172659 DOT 26944 DOT qmail AT web30803 DOT mail DOT mud DOT yahoo DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0604191332320 DOT 9185 AT access1 DOT cims DOT nyu DOT edu>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, 19 Apr 2006, Igor Peshansky wrote:

> On Wed, 19 Apr 2006, Matthew Karas wrote:
>
> > Hello,
> >
> >   I've been trying to get awk to write to the serial port under cygwin.
> >
> >   #script
> >   BEGIN{
> >
> >  PRINT " hello world " > "/dev/com1";
> > }
> >   #end script
> >
> >   this doesn't work in awk but
> [snip]
>
> WJFFM.  You'll have to be more specific about the nature of your problem.

I take that back.  It works for me if I use lowercase "print", which is an
awk command.  The uppercase "PRINT" is interpreted as an (empty) awk
variable, and awk interprets a constant expression in statement context
just like C does -- i.e., it ignores it.  This is not Cygwin-specific;
you'll get the same results on Linux.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019