__line of __ssh_authorized_keys grep seems to be incorrect #199

Closed
opened 2021-11-20 15:21:18 +00:00 by ungleich-gitea · 3 comments

Created by: telmich

If grepping the key directly from authorized_keys, grep returns the key.

If using grep -F -x and '.*' in front and behind the key, the result is empty

*Created by: telmich* If grepping the key directly from authorized_keys, grep returns the key. If using grep -F -x and '.*' in front and behind the key, the result is empty
Author
Owner

Created by: telmich

all okay, I have misread the if block - -F -x are there if it is NOT a regexp

*Created by: telmich* all okay, I have misread the if block - -F -x are there if it is NOT a regexp
Author
Owner

Created by: telmich

-F is obviously the problem :-)

*Created by: telmich* -F is obviously the problem :-)
Author
Owner

Created by: telmich

This is the problem I am referring to:

[14:54] artist:% cat test
abc
[14:54] artist:
% grep abc test
abc
[14:55] artist:% grep -F -x 'abc._' test
[14:55] artist:
% grep -F -x '._abc' test
[14:55] artist:~% grep -F -x 'abc' test
abc

*Created by: telmich* This is the problem I am referring to: [14:54] artist:~% cat test abc [14:54] artist:~% grep abc test abc [14:55] artist:~% grep -F -x 'abc._' test [14:55] artist:~% grep -F -x '._abc' test [14:55] artist:~% grep -F -x 'abc' test abc
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#199
No description provided.