Pls. help me recreate shell trick
Nicola Musatti
objectway at divalsim.it
Fri Nov 23 08:09:36 EST 2001
Hallo.
In my shell programs I used to find it useful to provide a test option
which only printed non recoverable commands, instead of executing them.
This was achieved as follows:
$ECHO rm -r /
where ECHO was either set to "echo" or nothing according to a command
line switch. Have you any suggestion on how can I achieve something
similar in Python?
Cheers,
Nicola Musatti
More information about the Python-list
mailing list