=== SamB_ is now known as SamB | ||
=== SamB_ is now known as SamB | ||
=== Logan__ is now known as Logan_ | ||
=== yofel_ is now known as yofel | ||
PatrickDickey | Hi everyone. I've got a quick question. I've created a script that sets up my bzr branch, and am running into an issue with the whoami command. Since the command is bzr whoami "My Name <myemail>", and I'm passing it a string value in my script, would I need quotes at all? In other words, would I use bzr whoami $name ? | 20:34 |
---|---|---|
=== SamB_ is now known as SamB | ||
maxb | PatrickDickey: You would need quotes to protect the spaces and < > characters from being interpreted as splitting the string into multiple arguments and redirection operators by the shell | 23:03 |
PatrickDickey | Thank you maxb, would I want to do something like bzr whoami '"' $name '"' then? | 23:04 |
maxb | erm, no | 23:04 |
maxb | bzr whoami "$name" | 23:04 |
maxb | (I'm assuming we're talking about Bourne shell here) | 23:05 |
* maxb thanks the absent mbp to super-fast hydrazine code review | 23:06 | |
PatrickDickey | maxb, yes we are. And thank you. I'll put that in. :) | 23:20 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!