<?xml version="1.0" ?><rss version="2.0">
    <channel>
	<title>ETF2L &#8211; Latest activity in &#8220;How to echo a semicolon in an alias?&#8221;</title>
	<link>https://staging.etf2l.org/forum/customise/topic-19315/</link>
	<description><![CDATA[The latest posts to this topic.]]></description>
    	<item>
    	    <title>Reply by broesel</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348126</link>
    	    <description><![CDATA[<i>Quoted from octochris</i>
		<blockquote>There also appears to be a complete lack of an escape character in TF2</blockquote>

\ go go :D]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348126</guid>
    	    <pubDate>Tue, 15 Nov 2011 22:56:58 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Dr. Chris</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348036</link>
    	    <description><![CDATA[It's not possible to do it with an alias due to the way that arguments to an alias are handled (and for some reason there is no escape, thanks Valve).

As you can see, echo handles quotes as requesting literal interpretation.

<code>] echo "connect foo; password bar"
connect foo; password bar
] echo connect foo; password bar
connect foo 
</code>

Clearly the quoting does make a difference in this case, but what about in other cases?

<code>] alias foo echo "connect foo; password bar"
] foo
connect foo 
] alias
Current alias commands:
foo :  echo connect foo; password bar</code>

As you can see, the effects of quoting seem to be specific to the command being run. My best guess (with no source available) is that the quotes are passed literally to the command, which then decides what to do with them, and this behaviour is not standardised.

There also appears to be a complete lack of an escape character in TF2, which is kind of annoying.

The best option is probably something like putting <code>echo "connect foo; password bar"</code> in a config file, and then aliasing an exec of it.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348036</guid>
    	    <pubDate>Tue, 15 Nov 2011 14:23:50 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by slate</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348031</link>
    	    <description><![CDATA[only way i know is as freshmeat said.

set up one .cfg per server containing

echo "connect server1:27015;password test"

and then exec those files.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348031</guid>
    	    <pubDate>Tue, 15 Nov 2011 14:12:24 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by joaof19</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348029</link>
    	    <description><![CDATA[if you have a bind to connect to it, you can also do "bind key" and it'll echo the connect too, like bind f1 will echo the command that you have for f1

if you want to do it for servers you don't have a bind to connect to dunno :&#60;]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348029</guid>
    	    <pubDate>Tue, 15 Nov 2011 14:01:17 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Spike Himself</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348026</link>
    	    <description><![CDATA[<i>Quoted from jonii</i>
		<blockquote>bind it directly? like 

bind "F1" "connect s1.colonslash.eu:28001; password lolright"

works for me, and saves the trouble of copy pasting it</blockquote>

Yeah, I have the bind already - that's not the issue.

I don't want to paste it in console myself - I want to paste it on mumble/steam to team mates :)



Apparently:

		<blockquote>&#60;+freshmeatt&#62; Can't be escaped in an alias,
&#60;+freshmeatt&#62; Although if you put the say/echo command in another cfg file and just exec it, it'll parse it right.
&#60;+freshmeatt&#62; Try putting in console say aaa;bbb - it will actually parse that right.</blockquote>

Will have to try that out when I get home ))]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348026</guid>
    	    <pubDate>Tue, 15 Nov 2011 13:53:20 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by joaof19</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348024</link>
    	    <description><![CDATA[bind it directly? like 

bind "F1" "connect s1.colonslash.eu:28001; password lolright"

works for me, and saves the trouble of copy pasting it]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348024</guid>
    	    <pubDate>Tue, 15 Nov 2011 13:51:33 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Created by Spike Himself</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-19315/page-1/?recent=348126#post=348021</link>
    	    <description><![CDATA[What the title says ^

I want an alias to print a connect string to console for copy/pasting cuz lazy, but semicolons are interpreted to terminate the line/cmd. Can it be escaped or something?

Something along the lines of
<code>alias "con1" "echo connect s1.colonslash.eu:28001; password lolright"</code>]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=19315&#038;post=348021</guid>
    	    <pubDate>Tue, 15 Nov 2011 13:35:10 +0100</pubDate>
    	</item>
    </channel>
</rss>