On Thursday, June 1, 2017 at 10:45:56 AM UTC-7, Jan Mercl wrote:
>
> On Thu, Jun 1, 2017 at 7:41 PM Santhosh Ram Manohar <santho...@gmail.com 
> <javascript:>> wrote:
>
> > Args: []string{"self", "selftest"},
>
> Here you explicitly pass arsg[0] == "self" and that's what the program 
> gets.
>

Yes, because I already have the program name in "Path". When Run() calls 
exec syscall i would expect Args[0] to be program name because from the 
exec point of view its no different from how shell would invoke it, no ?
 

>
> > What is the reason for this difference only for the binaries executed by 
> the exec package ?
>
> -- 
>
> -j
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to