Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: optparse eats $ Date: Tue, 19 Apr 2011 20:34:57 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 12 Message-ID: References: NNTP-Posting-Host: panix2.panix.com X-Trace: reader1.panix.com 1303245297 13806 166.84.1.2 (19 Apr 2011 20:34:57 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 19 Apr 2011 20:34:57 +0000 (UTC) User-Agent: nn/6.7.3 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3588 In tazz_ben writes: > So, any ideas? Why is including a $ eating both the dollar signa and the 1? Unix command lines tend to assume any $ inside double-quotes is a shell variable name. Try enclosing in single-quotes instead. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"