__line of __ssh_authorized_keys grep seems to be incorrect #199
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#199
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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% grep abc testabc
[14:54] artist:
abc
[14:55] artist:
% grep -F -x 'abc._' test% grep -F -x '._abc' test[14:55] artist:
[14:55] artist:~% grep -F -x 'abc' test
abc