mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 01:28:00 -04:00
17 lines
419 B
Awk
17 lines
419 B
Awk
# noassign.awk --- library file to avoid the need for a
|
|
# special option that disables command-line assignments
|
|
#
|
|
# Arnold Robbins, arnold@gnu.org, Public Domain
|
|
# October 1999
|
|
|
|
function disable_assigns(argc, argv, i)
|
|
{
|
|
for (i = 1; i < argc; i++)
|
|
if (argv[i] ~ /^[A-Za-z_][A-Za-z_0-9]*=.*/)
|
|
argv[i] = ("./" argv[i])
|
|
}
|
|
|
|
BEGIN {
|
|
if (No_command_assign)
|
|
disable_assigns(ARGC, ARGV)
|
|
}
|