<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 11, 2015 at 8:41 PM, G B via oi-dev <span dir="ltr"><<a href="mailto:oi-dev@openindiana.org" target="_blank">oi-dev@openindiana.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>What are the versions of nawk and awk in 1003 OI Hipster?</div></div></div></blockquote><div><br></div><div>Whatever the version of illumos it was built from.<br></div><div> <div>Something like<br><br></div><div>mcs -p /usr/bin/awk<br><br></div><div>should give the illumos build the command matches.<br></div><div><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div># pkg search '\*/usr/bin/nawk'</div></div></div></blockquote><div><br></div><div>Try<br><br></div><div>pkg search nawk<br><br></div><div>or<br><br></div><div>pkg search /usr/bin/nawk<br><br></div><div>(Basically, either the last component, or full pathname.)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div># pkg contents -o <a href="http://pkg.name" target="_blank">pkg.name</a>,path -a ='\*/usr/bin/nawk'</div></div></div></blockquote><div><br></div><div>That would be<br><br></div><div>pkg contents -o <a href="http://pkg.name">pkg.name</a>,path -a path=usr/bin/nawk<br><br></div><div>(note, without the leading / this time)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div dir="ltr"></div><div dir="ltr">None of them return a package.  Also 'awk --version' or 'nawk --version' doesn't retrun anything.</div></div></div></blockquote><div><br></div><div>That's because illumos has its own awk and nawk, rather than gawk.<br><br></div><div>(Unfortunately, the regular illumos awk - the one in /usr/bin/awk - is<br></div><div>pretty terrible, and best avoided.) <br></div></div><br>-- <br><div class="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/" target="_blank">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/" target="_blank">http://ptribble.blogspot.com/</a></div>
</div></div>