#988401 gawk: checking for interactive shell in /etc/profile.d/gawk.*

Package:
gawk
Source:
gawk
Description:
GNU awk, a pattern scanning and processing language
Submitter:
Christoph Anton Mitterer
Date:
2021-05-12 02:21:04 UTC
Severity:
wishlist
#988401#5
Date:
2021-05-12 02:17:30 UTC
From:
To:
Hey.

Shouldn't /etc/profile.d/gawk.* check whther the shell is interactive
and return if not?

It's probably not that important, because they usually won't be sourced
for shell scripts anyway,... but in the unusual case that someone invokes
a shell script like:

# sh -l foo.sh

they'd actually get sourced.


Cheers,
Chris.