Access to raw command line?
Grant Edwards
grante at visi.com
Thu Apr 26 12:48:36 EDT 2007
On 2007-04-26, Donn Cave <donn at u.washington.edu> wrote:
>> One possible way to work around this is to get the raw command line
>> and do the shell expansions ourselves from within Python. Ignoring the
>> question of whether it is worth the trouble, does anybody know if it
>> is possible to obtain the raw (unexpanded) command line?
>
> If you're on VMS (well, you didn't say), you're in luck.
>
> The UNIX shell has already expanded the file globbing by the
> time your program starts up, but VMS leaves it to the application,
> with the help of a handy RMS$ function or two so it gets done in
> a consistent way. This allows the command line interface to
> interact with the user in a little more transparent way, since
> the input seen by the program is congruent with what the user
> typed in. E.g., "rename *.jpeg *.jpg" is trivial on VMS,
> impossible on UNIX.
Typing rename '*.jpeg' '*.jpg' is impossible?
--
Grant Edwards grante Yow! I'm not available
at for comment..
visi.com
More information about the Python-list
mailing list