A bug in commands.getstatus?

Roy Katz katz at Glue.umd.edu
Fri Jan 19 23:53:04 EST 2001


Recently I noticed that commands.getstatus() does not accept any
parameters I give it -- even when its sister functions getstatusoutput() 
and getoutput() are happy:


23:48:15 [foxglove at foxglove foxglove]$ py
Python 2.0 (#1, Oct 16 2000, 18:10:03) 
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more information.

>>> import commands
>>> commands.getstatus('ls')

 'ls: ls: No such file or directory'

>>> commands.getstatusoutput('ls .')
(0, '')

>>> commands.getoutput('ls .')
''


what is going on here??



Roey




More information about the Python-list mailing list