portable-devtools / git /usr /share /awk /noassign.awk
codekingpro's picture
Add files using upload-large-folder tool
5b8d59b verified
Raw
History Blame Contribute Delete
571 Bytes
# noassign.awk --- library file to avoid the need for a
# special option that disables command-line assignments
#
# This file and how to use it are described in the manual.
# Therefore, we respectfully advise you to Read The Fine Manual
# for more information.
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# October 1999
function disable_assigns(argc, argv, i)
{
for (i = 1; i < argc; i++)
if (argv[i] ~ /^[a-zA-Z_][a-zA-Z0-9_]*=.*/)
argv[i] = ("./" argv[i])
}
BEGIN {
if (No_command_assign)
disable_assigns(ARGC, ARGV)
}