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

2017-08-22 Thread JonY
On 08/22/2017 02:21 AM, Steven Penny wrote: > [ 7%] Building CXX object > CMakeFiles/tagparser_static.dir/mp4/mp4tagfield.cpp.o > In file included from > /usr/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/ext/string_conversions.h:41:0, > > from > /usr/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/

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

2017-08-22 Thread Stephen John Smoogen
On 21 August 2017 at 18:30, 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 s

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

2017-08-22 Thread Eliot Moss
On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: I replicated this problem on my system and found that the fix is to add a shopt -s expand_aliases at the top of the script. I don't know why the option is turned off when running scripts versus in a plain script but that seems to be a default

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

2017-08-22 Thread Stephen John Smoogen
On 22 August 2017 at 10:47, Eliot Moss wrote: > On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: > >> I replicated this problem on my system and found that the fix is to add a >> >> shopt -s expand_aliases >> >> at the top of the script. I don't know why the option is turned off >> when running

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

2017-08-22 Thread Eliot Moss
On 8/22/2017 11:18 AM, Stephen John Smoogen wrote: On 22 August 2017 at 10:47, Eliot Moss wrote: On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: It's a *bash* default - it has nothing to do with Cygwin as distinct from other bash installations. If you had a different experience elsewhere

Strange bug with /dev/console in mintty

2017-08-22 Thread Erik Bray
Hi folks, I noticed a strange discrepancy when running Cygwin through mintty, vs through a normal cmd.exe console. This is on a build from the latest git master, but also on Cygwin 2.8.0. When run from a cmd.exe console, we can see the following output from fhandler_dev::readdir: $ ls -l /dev/c

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

2017-08-22 Thread cyg Simple
On 8/22/2017 11:18 AM, Stephen John Smoogen wrote: > On 22 August 2017 at 10:47, Eliot Moss wrote: >> On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: >> >>> I replicated this problem on my system and found that the fix is to add a >>> >>> shopt -s expand_aliases >>> >>> at the top of the script

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

2017-08-22 Thread Eliot Moss
On 8/22/2017 1:07 PM, cyg Simple wrote: On 8/22/2017 11:18 AM, Stephen John Smoogen wrote: On 22 August 2017 at 10:47, Eliot Moss wrote: On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: Are you talking bash as sh or bash as bash? Bash as sh will expand those aliases. But you should stud

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

2017-08-22 Thread Stephen John Smoogen
On 22 August 2017 at 12:45, Eliot Moss wrote: > On 8/22/2017 11:18 AM, Stephen John Smoogen wrote: >> >> On 22 August 2017 at 10:47, Eliot Moss wrote: >>> >>> On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: > > >>> It's a *bash* default - it has nothing to do with Cygwin as distinct >>> from o

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

2017-08-22 Thread cyg Simple
On 8/22/2017 1:13 PM, Eliot Moss wrote: > On 8/22/2017 1:07 PM, cyg Simple wrote: >> On 8/22/2017 11:18 AM, Stephen John Smoogen wrote: >>> On 22 August 2017 at 10:47, Eliot Moss wrote: On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: > >> Are you talking bash as sh or bash as bash?  Bash

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

2017-08-22 Thread cyg Simple
On 8/22/2017 3:07 PM, cyg Simple wrote: > On 8/22/2017 1:13 PM, Eliot Moss wrote: >> On 8/22/2017 1:07 PM, cyg Simple wrote: >>> On 8/22/2017 11:18 AM, Stephen John Smoogen wrote: On 22 August 2017 at 10:47, Eliot Moss wrote: > On 8/22/2017 10:31 AM, Stephen John Smoogen wrote: >> >>> Are

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

2017-08-22 Thread Kaz Kylheku
On 21.08.2017 15:53, Eliot Moss wrote: From the bash man page: "Aliases are ot expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt (see the description of shopt under SHELL BUILTIN COMMANDS below)." Could that be the root of your difficulty?

Re: Strange bug with /dev/console in mintty

2017-08-22 Thread Thomas Wolff
Am 22.08.2017 um 18:49 schrieb Erik Bray: Hi folks, I noticed a strange discrepancy when running Cygwin through mintty, vs through a normal cmd.exe console. This is on a build from the latest git master, but also on Cygwin 2.8.0. When run from a cmd.exe console, we can see the following output

mkpasswd doesn't recognize me

2017-08-22 Thread Wiedmann, Jochen
Hi, in order to set my home directory correctly in /etc/passwd, I run mkpasswd | grep MYUSERID mkpasswd -d | grep MYUSERID mkpasswd -d -l | grep MYUSERID mkpasswd -l | grep MYUSERID Neither of which returns any output. Thanks, Jochen SAG Consulting Services GmbH - Sitz/Registered off

Re: mkpasswd doesn't recognize me

2017-08-22 Thread Brian Inglis
On 2017-08-22 23:27, Wiedmann, Jochen wrote: > in order to set my home directory correctly in /etc/passwd, I run > mkpasswd | grep MYUSERID > mkpasswd -d | grep MYUSERID > mkpasswd -d -l | grep MYUSERID > mkpasswd -l | grep MYUSERID > Neither of which returns any output. Run id and mkpassw

RE: mkpasswd doesn't recognize me

2017-08-22 Thread Wiedmann, Jochen
Hi, Brian, > -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of > Brian Inglis > Sent: Mittwoch, 23. August 2017 07:59 > To: cygwin@cygwin.com > Subject: Re: mkpasswd doesn't recognize me > On 2017-08-22 23:27, Wiedmann, Jochen wrote: > > in

RE: mkpasswd doesn't regognize me

2017-08-22 Thread Wiedmann, Jochen
Hi, Brian, > -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of > Brian Inglis > Sent: Mittwoch, 23. August 2017 07:59 > To: cygwin@cygwin.com > Subject: Re: mkpasswd doesn't recognize me > On 2017-08-22 23:27, Wiedmann, Jochen wrote: > > in