bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Include directive bug fix


From: ykulebiakin
Subject: Include directive bug fix
Date: Thu, 04 May 2023 17:51:59 +0000

Hello,

I found an issue with the @include directive: it does not always search 
directories mentioned in AWKPATH.

For example, if we have the following directory structure:

<root>

main.awk

@include "dir1/include.awk"

include/

dir1/

include.awk

then the following command will not work: AWKPATH=include gawk -f ./main.awk, 
because AWKPATH is not used then we have a path (with the directory separator) 
in the @include directive.

I apply the patch to the io.c file which will solve the problem.

Yours sincerely,

Yehor

Attachment: io.c.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]