Last modified: 2014-02-12 18:07:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63140, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61140 - jsub doesn't keep quoted arguments
jsub doesn't keep quoted arguments
Status: RESOLVED DUPLICATE of bug 48811
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-10 13:54 UTC by Dakdada
Modified: 2014-02-12 18:07 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dakdada 2014-02-10 13:54:37 UTC
Jsub strips the quotes of arguments. When the quoted argument includes special bash characters like "(", "|" or "&", then the job submission fails.

Jsub should always keep the quotes of arguments.

Example:

$ jsub grep -E "^(a|b)$" foo.txt

NB: I wrote a workaround in https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Quoted_arguments
Comment 1 Tim Landscheidt 2014-02-12 14:14:13 UTC
Actually, no, jsub doesn't strip anything :-).  The problem lies with qsub, SGE's job submitter, and is practically unfixable in a reliable way.  The recommendation is to use a wrapper script.

*** This bug has been marked as a duplicate of bug 48811 ***
Comment 2 Dakdada 2014-02-12 16:58:57 UTC
I don't like to write scripts just for one-off jobs, but so be it (I'm content with my workaround). I updated the help section I mentioned.
Comment 3 Tim Landscheidt 2014-02-12 18:07:06 UTC
(In reply to comment #2)
> I don't like to write scripts just for one-off jobs, but so be it (I'm
> content
> with my workaround). I updated the help section I mentioned.

I don't either (especially as this poses questions like when can you safely remove the wrapper scripts from the disk, etc.), but as the quoting behaviour of qsub depends on the -b option, it's very easy to become confused otherwise.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links