From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 6D49D17CE3D4 for ; Wed, 6 Mar 2013 17:52:58 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 60203EA67F2 for ; Wed, 6 Mar 2013 17:31:45 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 4023B97A826 for ; Wed, 6 Mar 2013 17:31:45 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RjJJdAw8MaMX for ; Wed, 6 Mar 2013 17:31:45 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 1F3E697A820 for ; Wed, 6 Mar 2013 17:31:45 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id F031495242E for ; Wed, 6 Mar 2013 17:31:42 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id 8B0EC3C21D392; Wed, 6 Mar 2013 17:31:41 +0900 (JST) Received: from fluorine.ruby-lang.org (www.rubyist.net [210.251.121.216]) by carbon.ruby-lang.org (Postfix) with ESMTP id 34E803C21ED5D for ; Wed, 6 Mar 2013 17:31:41 +0900 (JST) Received: from ruby-lang.org (localhost [127.0.0.1]) by fluorine.ruby-lang.org (Postfix) with ESMTP id 0F8543E003 for ; Wed, 6 Mar 2013 17:31:41 +0900 (JST) Delivered-To: ruby-core@ruby-lang.org Date: Wed, 6 Mar 2013 17:31:41 +0900 Posted: Wed, 6 Mar 2013 17:31:40 +0900 From: "Shagabutdinov (Leonid Shagabutdinov)" Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:53162] [ruby-trunk - Bug #8028][Open] Shellwords.escape works incorrect under windows To: ruby-core@ruby-lang.org Message-Id: X-ML-Name: ruby-core X-Mail-Count: 53162 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= X-Mailer: Redmine X-Redmine-Issue-Author: Shagabutdinov X-Auto-Response-Suppress: OOF X-Redmine-Issue-Id: 8028 X-Redmine-Mailinglistintegration-Message-Ids: 26286 X-Redmine-Project: ruby-trunk Auto-Submitted: auto-generated X-Redmine-Site: Ruby Issue Tracking System X-Redmine-Host: bugs.ruby-lang.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Issue #8028 has been reported by Shagabutdinov (Leonid Shagabutdinov). ---------------------------------------- Bug #8028: Shellwords.escape works incorrect under windows https://bugs.ruby-lang.org/issues/8028 Author: Shagabutdinov (Leonid Shagabutdinov) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p0 (2013-02-24) [i386-mingw32] Shellwords.escape works incorrect under windows (tested for Windows 7 x64), here is example: Actual result: irb(main):001:0> require 'shellwords' => true irb(main):002:0> `echo #{Shellwords.escape( '123>' )} test` # should echo "123> test", but echo nothing => "" irb(main):003:0> File.read( 'test' ) # but writes file "test" => "123\\\n" Expected result: irb(main):001:0> `echo 132^> test` # the correct escape sequence, echoed "123> test" => "132> test\n" Tested for "ruby 2.0.0p0 (2013-02-24) [i386-mingw32]", ruby 1.9.3, but this bug can be found in earlier ruby versions as well. -- http://bugs.ruby-lang.org/