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

Smattering of minor fixes #713

Merged
merged 7 commits into from
Jan 31, 2024
Merged

Conversation

JohnoKing
Copy link

@JohnoKing JohnoKing commented Jan 28, 2024

Various minor accumulated changes:

  • Fixed an oversight that caused libast to needlessly override the native implementations of strlcpy and strlcat by failing to check for the existence of those functions.
  • Disabled the failing SIGBUS test on ASan because the design of the test isn't compatible with ASan's signal handling.
  • Added documentation for exit status 128 to ksh --man output.
  • Mark b_dummy() with the noreturn attribute (re: 9f11f24).
  • Ignore .stackdump files that are generated in the repository while debugging on Cygwin.
  • Revise one of the regression tests that fails on Cygwin to print a more informative error message.
  • Fixed a dead link and revised some links to prefer HTTPS.
  • Other minor fixes for things such as typos (the sfsetbuf typo 'MAP_TUPE' was introduced in d2b3571).

- Fixed an oversight that caused ksh to needlessly override the
  native implementations of strlcpy and strlcat by failing to
  check for the existence of those functions.

- Disabled the failing SIGBUS test on ASan because the design
  of the test isn't compatible with ASan's signal handling.

- Added documentation for exit status 128 to 'ksh --man' output.

- Mark b_dummy() with the noreturn attribute (re: 9f11f24).

- Ignore .stackdump files that are generated in the repository while
  debugging on Cygwin.

- Revise one of the regression tests that fails on Cygwin to print a
  more informative error message.

- Fixed a dead link and revised some links to prefer HTTPS.

- Other minor fixes for things such as typos.
@@ -1,4 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "https://www.w3.org/TR/REC-html40/loose.dtd">
Copy link

@McDutchie McDutchie Jan 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These doctype changes should not be made. Those aren't real URIs but XML namespace names.

Not all 128 errors are internal errors (e.g., out of memory
and failure to read from the script are system errors).

I don't think it's actually very useful to mention examples here;
I prefer to keep it brief.
@McDutchie McDutchie merged commit 9b04cc3 into ksh93:dev Jan 31, 2024
McDutchie added a commit that referenced this pull request Jan 31, 2024
Notable changes:

src/lib/libast/features/lib:
- Add missing strlcat and strlcpy lib tests. Their absence caused
  ksh to needlessly override the native implementations of strlcpy
  and strlcat (see string/strlc*.c).

src/cmd/ksh93/data/builtins.c: sh_optksh[]:
- Add documentation for exit status 128 to 'ksh --man' output.
  (These are the ERROR_PANIC errors.)

src/cmd/ksh93/sh/parse.c:
- Mark b_dummy() with the noreturn attribute (re: a19e1e9).

src/cmd/ksh93/sh/path.c: path_spawn():
- Fix uninitialized variable if _lib_readlink is not present.

src/cmd/ksh93/tests/signal.sh:
- Disabled the failing SIGBUS test on ASan because the design
  of the test isn't compatible with ASan's signal handling.

Co-authored-by: Martijn Dekker <martijn@inlv.org>
@JohnoKing JohnoKing deleted the smattering-of-minor-fixes branch February 3, 2024 16:42
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.

2 participants