From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 967 invoked by alias); 10 Apr 2013 09:43:08 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31250 Received: (qmail 19037 invoked from network); 10 Apr 2013 09:43:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at ithe.rwth-aachen.de does not designate permitted sender hosts) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed X-IronPort-AV: E=Sophos;i="4.87,445,1363129200"; d="scan'208";a="217587647" Message-id: <51653426.1000600@ithe.rwth-aachen.de> Date: Wed, 10 Apr 2013 11:43:02 +0200 From: Dino Ruic User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 To: zsh-workers@zsh.org Subject: bug with sed and escaping? X-PMWin-Version: 3.1.1.0 Hello, this is my first report, so I hope I can provide enough information. Also I'm somewhat of a beginner with zsh... Here's the thing: As far as I've found out the zsh should not behave differently than the bash if I execute bash scripts. Here's a minimal example of what it does on my system. Bash: $ echo "xy" | sed -e s/^x// y The result is the string "y" as the sed command removes the initial x. Zsh: $ echo "xy" | sed -e s/^x// zsh: no matches found: s/^x// So this gives me an error. Zsh wants me to escape the caret (^) or I could wrap s/^x// in quotation marks. Either of those commands work $ echo "xy" | sed -e "s/^x//" $ echo "xy" | sed -e s/\^x// If it were my script that I have to execute there, I'd change it to work properly. But this script is actually part of a large compiler package and it irks me that the zsh throws an exception while trying to execute some bash scripts in there. And I wouldn't want to "repair" scripts that actually should work. Am I doing something wrong, here? I tried this on multiple machines. Maybe I messed up some configuration, but I don't know where and why. If you need further information, please let me know. Thanks in advance Dino