<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Ruby brothers - &#1054;&#1073;&#1077;&#1079;&#1074;&#1088;&#1077;&#1078;&#1080;&#1074;&#1072;&#1077;&#1084; &#1086;&#1076;&#1080;&#1085;&#1072;&#1088;&#1085;&#1099;&#1077; &#1082;&#1072;&#1074;&#1099;&#1095;&#1082;&#1080; &#1074; Bash Comments</title>
  <id>tag:rubybrothers.ru,2010:/2009/12/3/how-to-escape-single-quotes-in-bash/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://rubybrothers.ru/2009/12/3/how-to-escape-single-quotes-in-bash/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2009/12/3/how-to-escape-single-quotes-in-bash" rel="alternate" type="text/html"/>
  <updated>2009-12-03T18:56:12Z</updated>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>&#1048;&#1083;&#1100;&#1103; &#1057;&#1072;&#1073;&#1072;&#1085;&#1080;&#1085;</name>
    </author>
    <id>tag:rubybrothers.ru,2009-12-03:991:996</id>
    <published>2009-12-03T18:56:12Z</published>
    <updated>2009-12-03T18:56:12Z</updated>
    <category term="Tips &amp; Tricks"/>
    <link href="http://rubybrothers.ru/2009/12/3/how-to-escape-single-quotes-in-bash" rel="alternate" type="text/html"/>
    <title>Comment on '&#1054;&#1073;&#1077;&#1079;&#1074;&#1088;&#1077;&#1078;&#1080;&#1074;&#1072;&#1077;&#1084; &#1086;&#1076;&#1080;&#1085;&#1072;&#1088;&#1085;&#1099;&#1077; &#1082;&#1072;&#1074;&#1099;&#1095;&#1082;&#1080; &#1074; Bash' by &#1048;&#1083;&#1100;&#1103; &#1057;&#1072;&#1073;&#1072;&#1085;&#1080;&#1085;</title>
<content type="html">&lt;p&gt;&lt;var&gt;shellescape&lt;/var&gt; не&#160;поможет, так&#160;как он&#160;просто эскейпит кавычки косыми чертами. А&#160;в &lt;a href=&quot;http://books.google.com/books?id=cEtmZlLzlwsC&amp;amp;#38;lpg=PA181&amp;amp;#38;ots=HPnm04tgZU&amp;amp;#38;dq=Bash%20can't%20escape%20single%20quote%20with%20backslash&amp;amp;#38;pg=PA181#v=onepage&amp;amp;#38;q=Bash%20can't%20escape%20single%20quote%20with%20backslashyou%20can't%20haveYou%20can't%20have%20single%20quotes%20inside%20single%20quotes&amp;amp;#38;f=false&quot;&gt;книжке по&#160;Башу&lt;/a&gt; чётко сказано, что&#160;использовать одинарные кавычки внутри одинарных кавычек нельзя, даже если их&#160;отэскейпить.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://rubybrothers.ru">
    <author>
      <name>edbond</name>
    </author>
    <id>tag:rubybrothers.ru,2009-12-03:991:995</id>
    <published>2009-12-03T16:37:21Z</published>
    <updated>2009-12-03T16:37:21Z</updated>
    <category term="Tips &amp; Tricks"/>
    <link href="http://rubybrothers.ru/2009/12/3/how-to-escape-single-quotes-in-bash" rel="alternate" type="text/html"/>
    <title>Comment on '&#1054;&#1073;&#1077;&#1079;&#1074;&#1088;&#1077;&#1078;&#1080;&#1074;&#1072;&#1077;&#1084; &#1086;&#1076;&#1080;&#1085;&#1072;&#1088;&#1085;&#1099;&#1077; &#1082;&#1072;&#1074;&#1099;&#1095;&#1082;&#1080; &#1074; Bash' by edbond</title>
<content type="html">&lt;p&gt;Посмотрите на&#160;lib/shellwords.rb. Вывод отличается, но&#160;возможно это&#160;то, что&#160;вам нужно.&lt;/p&gt;


	&lt;p&gt;http://svn.&lt;nobr&gt;ruby-lang&lt;/nobr&gt;.org/&lt;nobr&gt;cgi-bin&lt;/nobr&gt;/viewvc.cgi/tags/v1_8_7_174/lib/shellwords.rb?view=markup&lt;/p&gt;


	&lt;p&gt;shellescape &#8211; Escapes a string so&#160;that it&#160;can be safely used in&#160;a Bourne shell command line.&lt;/p&gt;</content>  </entry>
</feed>
