Skip to content

Document hashondef and nolog options for POSIX.1-2024 #168

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

Merged
merged 1 commit into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions doc/_set.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,13 @@ The options defined in the standard are:
- +-o nolog+
- +-o vi+

Yash does not support the nolog option, which prevents
Yash does not support the +nolog+ option. This option prevented
link:syntax.html#funcdef[function definitions] from being added to
link:interact.html#history[command history].
link:interact.html#history[command history] in old versions of Korn shell, but
is no longer supported by any popular shell.

The behavior of the +hash-on-def+ option in yash is based on POSIX.1-2001.
Many existing shells implement this option with different behavior, and
POSIX.1-2024 no longer imposes any behavior on this option.

// vim: set filetype=asciidoc textwidth=78 expandtab:
5 changes: 4 additions & 1 deletion doc/ja/_set.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ POSIX 規格に定義されているオプションは限られています。
- +-o nolog+
- +-o vi+

POSIX ではこのほかに、{zwsp}link:syntax.html#funcdef[関数定義]を{zwsp}link:interact.html#history[コマンド履歴]に登録しないようにする +-o nolog+ オプションを規定していますが、yash はこれをサポートしていません。
Yash は +nolog+ オプションをサポートしていません。
このオプションは古い Korn シェルで{zwsp}link:syntax.html#funcdef[関数定義]を{zwsp}link:interact.html#history[コマンド履歴]に登録しないようにする機能がありましたが、現在ほとんどのシェルではサポートされていません。

Yash の +hash-on-def+ オプションの動作は、POSIX.1-2001 に基づいています。既存の多くのシェルはこのオプションを異なる動作で実装しており、POSIX.1-2024 ではこのオプションの動作は規定されなくなりました。

// vim: set filetype=asciidoc expandtab:
Loading