Are you sure this is a bug?
If unsure, please post your question/situation to the forum first: aidenlab.org/forum.html
Describe the bug
Unix group names can have spaces, such as "aiden lab", as opposed to the more common "aidenlab". Several scripts parse ls -l output using awk with assumptions about the column number of the space-delimited output which do not hold when the file is owned by a group with a space in the name.
Run juicer as a user with a primary group that has a space in the name.
cleanup.sh will fail (as will other scripts under certain conditions).
Expected behavior
Scripts should work with group names (or user names) that contain spaces, as these are allowed and used in practice, for example, with institutional authentication via Active Directory.
Adding -g and -G to the ls calls will suppress user and group names in output. Decrementing awk column references by 2 should then resolve the issue.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Are you sure this is a bug? If unsure, please post your question/situation to the forum first: aidenlab.org/forum.html
Describe the bug Unix group names can have spaces, such as "aiden lab", as opposed to the more common "aidenlab". Several scripts parse ls -l output using awk with assumptions about the column number of the space-delimited output which do not hold when the file is owned by a group with a space in the name.
E.g. from scripts/cleanup.sh:
total will contain "lab" rather than the file size if the group name is "aiden lab".
This occurs in several places:
To Reproduce Steps to reproduce the behavior:
Expected behavior Scripts should work with group names (or user names) that contain spaces, as these are allowed and used in practice, for example, with institutional authentication via Active Directory.
Adding
-g
and-G
to thels
calls will suppress user and group names in output. Decrementing awk column references by 2 should then resolve the issue.Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.