amoffat/pbs — Issue #23: need a way to disable glob
Author: fruch
Created: 2012-02-01 14:36:52+00:00
State: open

after adding the windows support I I notice this issue:
>>> pbs.ipconfig("/?")
Traceback (most recent call last):
File "", line 1, in
File "c:\Python27\lib\site-packages\pbs.py", line 310, in __call__
if rc != 0: raise get_rc_exc(rc)(self._command_ran, self.stdout, self.stderr)
pbs.ErrorReturnCode_1:

Ran: 'C:\\WINDOWS\\system32\\ipconfig.exe /D'

didn't under stood why my /? turned into /D
after debugging it a bit a noticed that this is cause by the call to glob

I think that should be a why to disable globbing
similar to bash "set -o noglob"

I don't know if it should be module wipe, or per command configuration (maybe both options)