Conversation
|
An even better idea: only run uname once, when the script is sourced, and only define the awk() function on Solaris: |
|
fasd's method seems even better: pick an available version of |
72bbf69 to
6843d28
Compare
|
Solaris |
|
i kinda suck at github flow - could you squash these commits so I can get a better look at them? |
993746e to
ebb29b9
Compare
|
@rupa Done! |
dmd
left a comment
There was a problem hiding this comment.
This additional complexity seems iffy considering the userbase of Solaris 11.
|
I think it would be a shame to give up on POSIX compliance ( |
zrequires a version ofawkthat has the-voption. Solaris 11 uses by default an antiquated version ofawkthat does not have that option. Itsnawkdoes have-v, however. I propose adding the functionIt simply redirects calls on awk to nawk on Solaris and should have no effect on other systems. I have tested it with both
bashandzsh.