[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] empty AWK*PATH inconsistency
From: |
Robert Figura |
Subject: |
Re: [bug-gawk] empty AWK*PATH inconsistency |
Date: |
Thu, 9 Oct 2014 09:59:39 +0200 |
On Mon, 6 Oct 2014 13:03:32 -0400
"Andrew J. Schorr"
<address@hidden>
wrote:
> There's also a question of whether the current working directory (cwd) should
> be searched automatically or not. At the moment, the cwd is searched
> before AWKPATH, but not before AWKLIBPATH.
I've run into problems when . is searched before AWKPATH. I'm using
an awk script for shell completion. In the code i do some
@include "lib.awk"
I have two versions, one in use, and one in a repository to develop on.
Whenever i break lib.awk in the latter, a commandline in that path will
fail to autocomplete.
Since "lib.awk" is a common name i use for small projects it also
happens for other directories.
I feel that should be seen as security problem. My workaround is to
have a wrapper for awk that cd's into a directory that is safe...
Kind Regards
- Robert Figura
P.S.: Here's another piece of gawk code with wich i frequently run into
similar problems:
https://github.com/robert-figura/req