Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low: use bash in rgmanager/src/netfs.sh rather than clunky sed/grep/cut #529

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

grooverdan
Copy link

since bash can do find and replace, regex matches and variable extraction lets use it.

@grooverdan
Copy link
Author

$ set -o posix
$ a='proto=x=y'
$ b='#proto=x=y'
$ [ ${a%%=*} == proto ] && echo yes
yes
$ [ ${b%%=*} == proto ] && echo yes
$ 

@grooverdan
Copy link
Author

this is also bash in first line for netfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants