source: Daodan/MinGW/msys/1.0/share/awk/noassign.awk@ 1080

Last change on this file since 1080 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 422 bytes
Line 
1# noassign.awk --- library file to avoid the need for a
2# special option that disables command-line assignments
3#
4# Arnold Robbins, arnold@skeeve.com, Public Domain
5# October 1999
6
7function disable_assigns(argc, argv, i)
8{
9 for (i = 1; i < argc; i++)
10 if (argv[i] ~ /^[A-Za-z_][A-Za-z_0-9]*=.*/)
11 argv[i] = ("./" argv[i])
12}
13
14BEGIN {
15 if (No_command_assign)
16 disable_assigns(ARGC, ARGV)
17}
Note: See TracBrowser for help on using the repository browser.