Modify

Opened 2 years ago

#20750 new defect

ipcalc.sh will not run when GAWK is installed

Reported by: bittorf@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

when using gawk instead of busybox awk, the script will not run:

user@box:~$ ipcalc.sh 127.0.0.2 255.255.255.255
awk: -:11: 	for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x])
awk: -:11: 	          ^ syntax error
awk: -:11: Warnung: Fluchtsequenz »\.« wird wie ein normales ».« behandelt
awk: -:11: 	for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x])
awk: -:11: 	                             ^ syntax error
awk: -:11: 	for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x])
awk: -:11: 	                                          ^ syntax error
awk: -:18: 	for(;x<3;ret=and(ip,255)"."ret,ip=rshift(ip,8),x++);
awk: -:18: 	                              ^ syntax error
awk: -:18: 	for(;x<3;ret=and(ip,255)"."ret,ip=rshift(ip,8),x++);
awk: -:18: 	                                              ^ syntax error

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.