Bash oddities listing #34
Labels
No Label
breaking-change
bug
CI/CD
design
documentation
duplicate
enhancement
help wanted
invalid
plugin
question
secrets
shell-completion
versioning
wontfix
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#34
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
abra__length_="$(echo "$SECRET" | sed -e 's/.*[^0-9]([0-9]+)[^0-9]*$/1/')"
abra__version_="$(echo "$SECRET" | sed -n 's/.*(v[0-9]).*/1/p')"
Basically
parse_secret
because it uses scary regex values.🤮
Another gnarly regex in the mix via this comment.
Bash Nightmare Listingto Bash oddities listingI 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.