alias appears to not work inside a called bash script

2017-08-21 Thread Michel LaBarre
Hello all, I have a 4 line bash script: #!/bin/bash alias nawk=gawk alias nawk nawk 'BEGIN {FS="^"} ; (length($0) > maxline) { maxline = length($0) ; line=$0} ; END{print maxline, line}' $* When I run the script I see: alias nawk='gawk' /cygdrive/c/mybin/maxline/: line 4: nawk: comm

Re: alias appears to not work inside a called bash script

2017-08-21 Thread Eliot Moss
On 8/21/2017 6:30 PM, Michel LaBarre wrote: > Hello all, > > I have a 4 line bash script: > #!/bin/bash > alias nawk=gawk > alias nawk > nawk 'BEGIN {FS="^"} ; (length($0) > maxline) { maxline = length($0) ; > line=$0} ; END{print maxline, line}' $* > > > When I run the script I see: >

Re: alias appears to not work inside a called bash scripty

2017-08-21 Thread Duncan Roe
On Mon, Aug 21, 2017 at 06:30:15PM -0400, Michel LaBarre wrote: > Hello all, > > I have a 4 line bash script: > #!/bin/bash > alias nawk=gawk > alias nawk > nawk 'BEGIN {FS="^"} ; (length($0) > maxline) { maxline = length($0) ; > line=$0} ; END{print maxline, line}' $* > > > When I run the

RE: alias appears to not work inside a called bash scripty

2017-08-21 Thread Michel LaBarre
Rats! You are right. Thank you so much Duncan and Eliot (both for the information and the tactful tone :-) ). I will review shopt - I had been only looking at "set" for relevant options. > -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On > Behalf

Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64} binutils, gcc (Test)

2017-08-21 Thread Steven Penny
On Sun, 20 Aug 2017 19:45:30, Steven Penny wrote: On Sun, 20 Aug 2017 18:57:24, Steven Penny wrote: > Question - is mingw64-x86_64-gcc-g++ still coming? I have come C++ projects I > could test it with. Correcting myself; looks like the Aug 20 update includes C and C++: http://cygwin.mirror.cons