[
https://issues.jboss.org/browse/WFCORE-3556?page=com.atlassian.jira.plugi...
]
Jean-Francois Denise commented on WFCORE-3556:
----------------------------------------------
In order for bash grep command to accept echo nofork | grep '^no(fork|group)' you
need to add the -E option, so : echo nofork | grep -E '^no(fork|group)'
Escaping the parenthesis is a syntax item to advertise that this is a group when not using
the extended pattern.
I think that we should keep it as it is, there is no need to escape characters that we
don't want to see escaped to comply with a behaviour of grep.
Unexpected output with grep '^no\(fork\|group\)'
------------------------------------------------
Key: WFCORE-3556
URL:
https://issues.jboss.org/browse/WFCORE-3556
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Katerina Novotna
Assignee: Jean-Francois Denise
*Description of problem:*
Aesh grep command doesn't return expected result. The same command with bash grep
gives 'nofork' result.
*Actual results:*
[standalone@embedded /] echo nofork | grep '^no\(fork\|group\)'
[standalone@embedded /]
*Expected results:*
[standalone@embedded /] echo nofork | grep '^no\(fork\|group\)'
[standalone@embedded /] nofork
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)