Question: Special Character $ Gets Converted To X In Tool
0
gravatar for Ketan Maheshwari
4.8 years ago by
Ketan Maheshwari70 wrote:
Hi, In a test tool that I am working on, I need to enter text preceded by a $ sign to be interpreted as an environment variable by the underlying running script. However, it seems that the $ sign gets converted to X when it gets passed to the tool executable. Is there a way to work around this or should I be doing something else to pass environment variables via Galaxy tool UI. Thanks, Ketan
galaxy • 796 views
ADD COMMENTlink modified 4.8 years ago by Bjoern Gruening5.1k • written 4.8 years ago by Ketan Maheshwari70
1
gravatar for Bjoern Gruening
4.8 years ago by
Bjoern Gruening5.1k
Germany
Bjoern Gruening5.1k wrote:
Hi Ketan! it sounds like your input is sanitized. You can disable it for your whole wrapper or you can write a special sanitizer for your input field: https://wiki.galaxyproject.org/Admin/Tools/ToolConfigSyntax#A.3Csaniti zer.3E_tag_set Cheers, Bjoern
ADD COMMENTlink written 4.8 years ago by Bjoern Gruening5.1k
Thank you. It worked and the sanitizer tag sounds very useful. -- Ketan
ADD REPLYlink written 4.8 years ago by Ketan Maheshwari70
0
gravatar for Peter Cock
4.8 years ago by
Peter Cock1.4k
European Union
Peter Cock1.4k wrote:
On Fri, Jan 31, 2014 at 5:13 PM, Ketan Maheshwari This is a security feature I think - or it may just need escaping as \$ Since you are writing the script, why not pass in the environment variable name without the dollar? Peter
ADD COMMENTlink written 4.8 years ago by Peter Cock1.4k
Thanks! Just wanted to report that \$ does not work; \ adds one more X. -- Ketan
ADD REPLYlink written 4.8 years ago by Ketan Maheshwari70
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 150 users visited in the last hour