r5 wrote:
> Passing the --version argument to /usr/bin/as in OS X
> causes it to hang:
>
> % /usr/bin/as --version
> Apple Computer, Inc. version cctools-498.obj~14, GNU assembler version 1.38
><hangs...>
>
> Is there a fix for this?
First of all, in my case it produces an error (using bash):
dune:~ iang$ /usr/bin/as --version
/usr/libexec/gcc/darwin/ppc/as: I don't understand '-' flag!
Apple Computer, Inc. version cctools-495.obj~4, GNU assembler version 1.38
But then "--version" is not a documented option so using "-v":
dune:~ iang$ /usr/bin/as -v
Apple Computer, Inc. version cctools-495.obj~4, GNU assembler version 1.38
Admittedly it appears to hang at that point, but in fact it is not
really hung. The man page points out that if no files are specified
it reads from stdin, so in fact it is just waiting for you to indicate
EOF by typing ctrl-D. It seems that "-v" means "print version before
starting assembly". Try this:
dune:~ iang$ /usr/bin/as -v < /dev/null
Apple Computer, Inc. version cctools-495.obj~4, GNU assembler version 1.38
dune:~ iang$
--
Ian Gregory
<a style='text-decoration: underline;' href="http://www.zenatode.org.uk/ian/" target="_blank">http://www.zenatode.org.uk/ian/</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Problem with OS X /usr/bin/as