freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Problems Connecting Debian --> MSSQL through odbc
- From: Jaap van Arragon <j.vanarragon AT lukkien.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Problems Connecting Debian --> MSSQL through odbc
- Date: Thu, 16 Jul 2009 16:03:23 +0200
SERVER:~# awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
compiled limits:
max NF 32767
sprintf buffer 1020
What can I do? Everything seems to be right but it and working....;-(
On 7/16/09 4:04 AM, "James K. Lowden" <jklowden AT freetds.org> wrote:
> Steve Langasek wrote:
>>
>>> DRIVER=$(echo ${DRIVER_LINE} \
>>> | awk -F '[[:space:]]*=[[:space:]]*' '{print $2}')
>>
>>> sh -x echoes:
>>
>>>> ++ echo Driver = FreeTDS
>>>> ++ awk -F '[[:space:]]*=[[:space:]]*' '{print $2}'
>>>> + DRIVER=
>>
>>> It's as though your awk doesn't accept Posix regular expressions as a
>>> field separator. Is there any reason to think that could be so? What
>>> does "awk --version" say?
>>
>>> $ awk --version
>>> GNU Awk 3.1.3
>>> Copyright (C) 1989, 1991-2003 Free Software Foundation.
>>
>> gawk supports this syntax, mawk (the default on Debian) does not.
>
> Thanks Steve! Am I missing something, or is that totally broken?
>
> http://193.110.243.4/hppd/hpux/Shells/mawk-1.3.3/man.html
>
> "mawk conforms to the Posix 1003.2 (draft 11.3)"
>
> Posix Regular expression for awk are defined by the OpenGroup:
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html#tag_04_06_13_
> 04
>
> which refers to
>
> http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_
> 01
>
> which clearly defines [:space:] as a basic RE character class expression.
>
>
> So mawk claims to be Posix-compliant, but isn't. Not supporting Posix
> regular expressions in 2009 is just lame.
>
> Bah. Why do they do this?
>
> Sorry, Jaap, afaict your awk nonstandard. Thanks for bringing it to my
> attention. I'll modify osql to test for that.
>
> --jkl
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
Re: [freetds] Problems Connecting Debian --> MSSQL through odbc
, (continued)
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, jklowden, 07/14/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Frediano Ziglio, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Frediano Ziglio, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Frediano Ziglio, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, jklowden, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Steve Langasek, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, James K. Lowden, 07/15/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, jklowden, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Daniel Fazekas, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Frediano Ziglio, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Frediano Ziglio, 07/16/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/17/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Frediano Ziglio, 07/17/2009
- Re: [freetds] Problems Connecting Debian --> MSSQL through odbc, Jaap van Arragon, 07/17/2009
Archive powered by MHonArc 2.6.24.