|
From: | anonymous |
Subject: | [bug #30455] \s now matches whitespace |
Date: | Thu, 15 Jul 2010 20:35:00 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4 |
URL: <http://savannah.gnu.org/bugs/?30455> Summary: \s now matches whitespace Project: grep Submitted by: None Submitted on: Thu 15 Jul 2010 08:34:59 PM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: $ echo " " | grep -c '^\s' 1 $ echo s | grep -c '^\s' 0 According to the documentation, the results ~should~ be: $ echo " " | grep -c '^\s' 0 $ echo s | grep -c '^\s' 1 If this is a desired feature (and I for one think it is very undesirable to change the way grep works) it should be at least documented. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30455> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |