[issue15874] argparse cannot parse shell variable arguments in file-given arguments

2012-09-10 Thread Nat Hillard
Nat Hillard added the comment: Thank you, everyone. Defining a new type for this is just what I needed. No additional modifications are necessary on top of this new type. -- resolution: - works for me status: open - closed ___ Python tracker rep

[issue15874] argparse cannot parse bash variable arguments in file-given arguments

2012-09-06 Thread Nat Hillard
New submission from Nat Hillard: When using the argparse argument fromfile_prefix_chars to obtain command line arguments from a file, it is not possible to make use of bash environment variables within this file. Ideally one would be able to `export BAR='/Users/x/Desktop/bar'`, and then give

[issue15874] argparse cannot parse shell variable arguments in file-given arguments

2012-09-06 Thread Nat Hillard
Nat Hillard added the comment: Indeed these are all valid points, and as a zsh user myself I certainly considered the alternative shell issue. That said, if it were at all possible, through a combination of os.environ / shlex, subprocess, and even `source` if necessary, to offload