I am trying to use indi_eval to snoop on a property from the gphoto driver. If I use the generic driver named "GPhoto CCD" then everything works fine and I am able to write an expression to get the value.

The problem comes when using the Nikon driver. This driver names itself what the gphoto camera name is. In my case I get a device name of "Nikon DSC D3100 (PTP mode)". If I try and use this in the indi_eval expression I get a compile error. I think to do with the (PTP mode) part of the name.

Is there a way to make indi_eval through the shell work with this device name? Would it be possible to sanitize the device name in either indi_eval or the gphoto driver?