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/


Reply via email to