[torquedev] Bug: Torque can't handle email addresses with apostrophes in

Garrick Staples garrick at usc.edu
Wed Dec 10 23:32:00 MST 2008


On Thu, Dec 11, 2008 at 05:24:23PM +1100, Chris Samuel alleged:
> Hi all,
> 
> Just come across an "interesting" bug in Torque.
> 
> A user who has an email address with an apostrophe (')
> in it was trying to submit jobs and getting the following
> rather cryptic error:
> 
> $ qsub test.sh
> qsub: unmatched
> 
> This is because Torque constructs a fake command line
> from all the #PBS lines in your script.  It then parses
> the list to check you don't have any unmatched quotes
> in it and throws that error..
> 
> Problem is that ' is perfectly legal in an email address.
> 
> I've tried escaping the ' as \' and jobs get submitted,
> but then the emails to the user that they've requested
> never get sent or received.

How about using double quotes around the email address?

-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California

See the Dishonor Roll at http://www.californiansagainsthate.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20081210/46efd78d/attachment.bin


More information about the torquedev mailing list