Skip to content

Bash fix error project#10

Open
izissise wants to merge 1 commit intomainfrom
basherr-fix-prj
Open

Bash fix error project#10
izissise wants to merge 1 commit intomainfrom
basherr-fix-prj

Conversation

@izissise
Copy link
Contributor

@izissise izissise commented Jan 25, 2023

In order to fix bash set -e decision, we found out that replacing newline by && instead of ; when bash parser connects commands is a good workaround to have truly sturdy script.

Unfortunately bash developers don't seems open to the idea https://savannah.gnu.org/patch/?10273

We would like to propose a patch adding an shopt to keep existing scripts compatibility with a community that would push the idea to bash devs.

Steps:

  • Create patch
  • Man
  • Documentation
  • Tests

Workaround: #8

@izissise
Copy link
Contributor Author

izissise commented Sep 5, 2023

0001-Shopt-func-default-connector-and-and.patch.txt
Last patch revision

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant