#20750: ipcalc.sh will not run when GAWK is installed
-----------------------+------------------------
Reporter: bittorf@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
-----------------------+------------------------
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
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20750>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets