This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Awk not ouputting results via echo
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 24 Nov 2015 13:24:33 -0500
- Subject: Re: Awk not ouputting results via echo
- Authentication-results: sourceware.org; auth=none
- References: <CAE3taFC=tjki1FTfbjyt+KnEGsWmrj63FMeBjgRswRwRSKdAWQ at mail dot gmail dot com> <CAE3taFBJZx+-Mok3Cch2uv+rMqUCDmJsvwfW6fWp0x_6EvDVtA at mail dot gmail dot com> <5653288B dot 5040004 at cs dot umass dot edu> <CAE3taFDf5EYzp1qJEzBgvh+Z6KCdJvpSjqLCw0WnshACxBmjxA at mail dot gmail dot com>
On 11/23/2015 10:11 AM, Lester Anderson wrote:
> Hello,
>
> The img2grd program is a Windows code. The script is using the GMT
Which is the cause of any PTY issue.
> software that is freely available, and accessed via Cygwin; can also
> work via standard windows batch files to a more restricted degree.
>
> The Windows path definition worked fine, thanks for that
>
> The issue seems to be getting the variables calculated via awk into
> the region definition (R). The awk version under Cygwin is Gawk, and
> it appears to run without issue, although I cannot get the values out
> to check the calculation. The echo command does not give any output.
> Awk has to be used as bash does not work with floating point numbers
> as far as I can see.
>
When in a shell that has an embedded echo such as bash you're actually
using the shell internals. What if you use /bin/echo instead? Or even
/bin/cat. This may or may not alleviate any PTY issue.
> I am slowly working my way through a published script to get it running.
>
Please stop top posting. It is most annoying.
--
cyg Simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple