Message: Re: /control/foreach possible bug Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: /control/foreach possible bug 

Forum: (Graphical) User Interfaces
Re: Warning /control/foreach possible bug (C Mos)
Re: Idea Re: /control/foreach possible bug (C Mos)
Date: 17 Apr, 2014
From: Michael H. Kelsey <Michael H. Kelsey>

On Thu, 17 Apr 2014 22:21:46 GMT, C Mos wrote:
> Ok so I was able to figure out (sort of) the bug that exist in the
> /control/foreach command. Here you can see it in my simple example. Run
> the folloiwng lines:
>   /control/alias CM "1"
>   /control/foreach ./g4macros/kookoo.mac CM "p pi- mu-"
> The macro file kookoo.mac has the following line in it:
>   /control/echo {CM}
> The output I get is:
>   p
>   pi-
>   mu-"
> Here in the output you can see the last element has an extra character
> referring to the char >>"<<. This causes the command to crash when
> executing the last element in the list.

Could you file this as a bug report in Bugzilla ( That allows us to track it more effectively than in Hypernews threads :-)

 Add Message Add Message
to: "Re: /control/foreach possible bug"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]