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

2017-08-21 Thread Michel LaBarre
com] On > Behalf Of Duncan Roe > Sent: August-21-17 6:56 PM > To: cygwin@cygwin.com > Subject: Re: alias appears to not work inside a called bash scripty > > On Mon, Aug 21, 2017 at 06:30:15PM -0400, Michel LaBarre wrote: > > Hello all, > > > > I have a 4 line

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