Bug 15781

Summary: Need support for -E option in awk
Product: Busybox Reporter: Philip Prindeville <philipp>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs, philipp
Priority: P5    
Version: 1.35.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Philip Prindeville 2023-09-21 00:10:28 UTC
When embedding a script in a file as "#!/usr/bin/awk -f", awk will hungrily consume anything that looks like an flag, hiding them from the script itself.

The -E option allows the embedded script to see the flags that were passed on the command line, so that the script itself might have some flag processing ability.

Otherwise, one always has to invoke the script with "-- flags... options..." instead which is ugly and counter-intuitive; and if you're rewriting an existing script from another language (say 'sh') into awk, this breaks transparency/compatibility.