<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm having trouble with using regex to set permissions for my ruby application. <div><pre class="textmate-source"><pre class="sunburst">tracey:sandbox administrator$ sudo rabbitmqctl set_permissions -p /nanite nanite <span class="string string_quoted string_quoted_double string_quoted_double_shell">"^nanite-.*"</span> <span class="string string_quoted string_quoted_double string_quoted_double_shell">".*"</span> <span class="string string_quoted string_quoted_double string_quoted_double_shell">".*"</span>
Setting permissions <span class="keyword keyword_control keyword_control_shell">for</span> user <span class="string string_quoted string_quoted_double string_quoted_double_shell">"nanite"</span> <span class="keyword keyword_control keyword_control_shell">in</span> vhost <span class="string string_quoted string_quoted_double string_quoted_double_shell">"/nanite"</span> ...
...<span class="keyword keyword_control keyword_control_shell">done</span>.
tracey:sandbox administrator$ sudo rabbitmqctl list_permissions -p /nanite
Listing permissions <span class="keyword keyword_control keyword_control_shell">in</span> vhost <span class="string string_quoted string_quoted_double string_quoted_double_shell">"/nanite"</span> ...
mapper                .*        .*
nanite        %5enanite-.*        .*        .*
...<span class="keyword keyword_control keyword_control_shell">done</span>.
tracey:sandbox administrator$
</pre><pre class="sunburst"><font class="Apple-style-span" face="Helvetica">I type in "^nanite-.*" but "%5enanite-.*" is what gets saved. </font></pre><pre class="sunburst"><font class="Apple-style-span" face="Helvetica">Is this an issue with rabbitmq or bash?</font></pre></pre></div></body></html>