__clean_path shellcheck issue #79

Closed
opened 2021-11-20 13:23:36 +00:00 by ungleich-gitea · 7 comments

@ander Didn't watch before merging, but

$ ./bin/build-helper shellcheck
cdist/conf/type/__clean_path/manifest:23:10: note: To read lines rather than words, pipe/redirect to a 'while read' loop. [SC2013]

Can you resolve it?
Thanks!

@ander Didn't watch before merging, but ``` $ ./bin/build-helper shellcheck cdist/conf/type/__clean_path/manifest:23:10: note: To read lines rather than words, pipe/redirect to a 'while read' loop. [SC2013] ``` Can you resolve it? Thanks!
ander was assigned by ungleich-gitea 2021-11-20 13:23:36 +00:00
Author
Owner

closed

closed
Author
Owner

closing because of spaces

closing because of spaces
Author
Owner

mentioned in merge request !817

mentioned in merge request !817
Author
Owner

you are right

you are right
Author
Owner

@ander I wouldn't ignore and disable this. What if file contains spaces? Current loop wouldn't work.

@ander I wouldn't ignore and disable this. What if file contains spaces? Current loop wouldn't work.
Author
Owner

we have "stdin inside a loop" issue here if i use while read.

so, __file foo < /dev/null or # shellcheck disable=SC2013 ?

we have "stdin inside a loop" issue here if i use `while read`. so, `__file foo < /dev/null` or `# shellcheck disable=SC2013` ?
Author
Owner

changed the description

changed the description
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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#79
No description provided.