binpash / binpash/hs

Inline comments not handled properly

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
bug parsing
Dominant language
Shell
Stars
19
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The example below:

```tr \\0 \\n <"in1" |
sed 's|^.*/||' |
# This is a comment
awk '{s += length($1); n++} END {
if (n>0)
print s / n;
else
print 0; }'
```

Gets parsed as:

```tr \\0 \\n <"in1" | sed 's|^.*/||' | # This is a comment awk '{s += length($1); n++} END { if (n>0) print s / n; else print 0; }'```

Similarly `echo foo # bar` will appear as is inside the Rikerfile.

We need to get rid of comments in these cases.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.