FS#17312 - [gawk] /usr/bin/awk link
Attached to Project:
Arch Linux
Opened by Johan R (cleanrock) - Saturday, 28 November 2009, 20:54 GMT
Last edited by Allan McRae (Allan) - Tuesday, 05 July 2011, 07:00 GMT
Opened by Johan R (cleanrock) - Saturday, 28 November 2009, 20:54 GMT
Last edited by Allan McRae (Allan) - Tuesday, 05 July 2011, 07:00 GMT
|
Details
Some shell scripts (e.g. build scripts) start with
#!/usr/bin/awk and fails on archlinux. Perhaps an extra link /usr/bin/awk to /bin/gawk could be added. |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 05 July 2011, 07:00 GMT
Reason for closing: Implemented
Additional comments about closing: gawk-4.0.0-1 in [testing]
Tuesday, 05 July 2011, 07:00 GMT
Reason for closing: Implemented
Additional comments about closing: gawk-4.0.0-1 in [testing]
PS: I don't think the scripts should be fixed if they are generic awk script.
It does seem though that changing them to #!/usr/bin/env awk would fix it
Thus an executable awk script always starts with #!/usr/bin/awk -f
How about just adding an extra link (/usr/bin/awk) to the package ? This would make things less painful than having to add sed commands to packages.
It sounds like /usr/bin/awk is a standard place to find awk, at least in some circles. It seems only to increase compatibility with those using that standard, and not getting in anyone else's way.
I guess I'll do this in a week or two if nobody objects.
Please dont forget to change this next time gawk is updated.
Honestly, there is nothing to convince me either is better... so we will probably leave this bug open for another year!