Public bug reported:
Grep 2.5.1.ds2-6build1
The following statements
echo 2 | grep '^[[:digit:]]+$'
echo 2 | grep '^[0123456789]+$'
should both print 2 because the regular expression is stating that lines that
consist of only digits should be printed.
Neither prints anything.
Although,
echo 2 | grep '^[[:digit:]]*$'
and
echo 2 | grep '^[0123456789]*$'
both print 2.
** Affects: grep (Ubuntu)
Importance: Undecided
Status: New
--
echo 2 | grep '^[[:digit:]]+$' prints nothing
https://bugs.launchpad.net/bugs/132119
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs