Bash oddities listing #34

Closed
opened 2020-11-05 13:43:34 +00:00 by decentral1se · 3 comments
Owner

When it becomes too much we need to bail on bash or fix them up. Don't feel guilty if you make an oddity, its not your fault. This is a collective responsibility we all carry together. Add them to this listing, we'll get back to it.

When it becomes too much we need to bail on bash or fix them up. Don't feel guilty if you make an oddity, its not your fault. This is a collective responsibility we all carry together. Add them to this listing, we'll get back to it.
Author
Owner

https://git.autonomic.zone/coop-cloud/abra/src/branch/main/abra#L414

abra__length_="$(echo "$SECRET" | sed -e 's/.*[^0-9]([0-9]+)[^0-9]*$/1/')"

https://git.autonomic.zone/coop-cloud/abra/src/branch/main/abra#L423

abra__version_="$(echo "$SECRET" | sed -n 's/.*(v[0-9]).*/1/p')"

Basically parse_secret because it uses scary regex values.

🤮

> https://git.autonomic.zone/coop-cloud/abra/src/branch/main/abra#L414 `abra__length_="$(echo "$SECRET" | sed -e 's/.*[^0-9]([0-9]+)[^0-9]*$/1/')"` > https://git.autonomic.zone/coop-cloud/abra/src/branch/main/abra#L423 `abra__version_="$(echo "$SECRET" | sed -n 's/.*(v[0-9]).*/1/p')"` Basically `parse_secret` because it uses scary regex values. 🤮
Author
Owner

Another gnarly regex in the mix via this comment.

Another gnarly regex in the mix via [this comment](https://git.autonomic.zone/coop-cloud/abra/issues/36#issuecomment-1915).
decentral1se changed title from Bash Nightmare Listing to Bash oddities listing 2020-12-29 13:10:05 +00:00
decentral1se added the
help wanted
label 2020-12-29 13:12:50 +00:00
Author
Owner

I think I used to think we'd be in an endless loop of Bash nightmares but actually it kind of bottomed out and there isn't much scariness and a lot of the oddities listed here are known quantities now. abra is surprisingly stable for our uses and I can't see much value in tracking stuff that feels gnarly anymore so I am just gonna close this off.

I think I used to think we'd be in an endless loop of Bash nightmares but actually it kind of bottomed out and there isn't much scariness and a lot of the oddities listed here are known quantities now. `abra` is surprisingly stable for our uses and I can't see much value in tracking stuff that feels gnarly anymore so I am just gonna close this off.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
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: coop-cloud/abra#34
No description provided.