__line of __ssh_authorized_keys grep seems to be incorrect #199
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#199
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
all okay, I have misread the if block - -F -x are there if it is NOT a regexp
Created by: telmich
-F is obviously the problem :-)
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