bash
bash copied to clipboard
PR:1 Get results split over multiple lines as a list
From updated readme:
To get the results (separated by newlines) as a list:
>>> b = bash('ls . ').results()
['bash.pyc', 'tests.pyc']
or use the iterator directly::
>>> b = [res for res in bash('ls . ')]
['bash.pyc', 'tests.pyc']