On Thu, Nov 14, 2013 at 4:57 PM, Sven-Göran Bergh
<[email protected]> wrote:
>>>+//config:        * simultaneous use of -f and an Awk program on the command 
>>>line.
>>>+//config:          This enables the use of awk library files.
>>>+//config:           Ex: awk -f mylib.awk '{print myfunction($1);}' ...
>>
>>This does not seem to work with GNU Awk 4.0.1:
>>
>>$ awk -f EMPTYFILE 'BEGIN {print "hello";}'
>>$ awk -f EMPTYFILE -e 'BEGIN {print "hello";}'
>>hello
>>$
>>
>>In the first case, it seems that 'BEGIN {print "hello";}'
>>is taken as a _filename_, not _awk program_.
>
> Indeed, you are right. I do not know why I thought the first form was 
> accepted by
> gawk. My mistake. This makes the simplified code above even more relevant.
>
> A new patch with theses changes is attached.

Oh, sorry... I committed another patch to git already,
which should do what you want. Can you test current git?
Let me know if it still needs something.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to