Skip to content

Comments

tests: support both *BSD and Linux ls -l permissions output#14

Open
domo141 wants to merge 1 commit intofanf2:masterfrom
domo141:topic-g65ae6dd
Open

tests: support both *BSD and Linux ls -l permissions output#14
domo141 wants to merge 1 commit intofanf2:masterfrom
domo141:topic-g65ae6dd

Conversation

@domo141
Copy link

@domo141 domo141 commented Dec 20, 2021

Linux ls(1) adds trailing '.' to the first -- "drwxrwxrwx" output
column -- a character that does not exist in *BSD ls -l output.

The sed expression 's/[.]? .*//' removes everything since first
space -- and additionally trailing dot (.) before that if such
a character exists there.

Linux ls(1) adds trailing '.' to the first -- "drwxrwxrwx" output
column -- a character that does not exist in *BSD ls -l output.

The sed expression 's/[.]\? .*//' removes everything since first
space -- and additionally trailing dot (.) before that if such
a character exists there.
@musicinmybrain
Copy link

This works well for me as a downstream patch in Fedora. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants