[BUG?] run.exe and pdflatex
Christopher Faylor
cgf-use-the-mailinglist-please@cygwin.com
Thu Jan 10 23:37:00 GMT 2008
On Fri, Jan 11, 2008 at 12:13:59AM +0100, Sven K?hler wrote:
>> bash -c "exec /bin/echo \$@" some arguments here
>>
>> and see what's printed; then read the bash man page for why this happens).
>
>Oh, that possibility was new to me.
>
>All i wonder, is why the "some" gets lost. Only "arguments here" is
>printed. And actually i would like to argue, that "$@" instead of $@
>should be used.
Because, as on linux, the arguments are taken to be argv[0 - 2].
bash -c "exec /bin/echo \"\$0\" \"\$@\""
will get you all of the arguments.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list