[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    A bug in commands.getstatus?
From:       Roy Katz <katz () Glue ! umd ! edu>
Date:       2001-01-20 4:53:04
[Download RAW message or body]

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@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

-- 
http://mail.python.org/mailman/listinfo/python-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic