github nyaosorg/nyagos 4.4.14_0

latest releases: 4.4.19_0, 4.4.18_1, 4.4.18_0...
2 years ago

The binaries of this version are built with Go 1.20.9.
They support Windows 7, 8.1, 10, 11, WindowsServer 2008 or later, and Linux.

New features

  • nyagos.d/suffix.lua: Enabled automatic expansion of wildcards used in parameters of commands listed in %NYAGOSEXPANDWILDCARD% (for example: nyagos.env.NYAGOSEXPANDWILDCARD="gorename;gofmt" )
  • #432 Add new option: glob_slash to enable with the option of executable --glob-slash, calling lua function like nyagos.option.glob_slash=true, or executing command set -o glob_slash. When it is set, / is used on wildcard expansion.
  • Support Japanese input method editor: SKK (Simple Kana Kanji conversion program) - How To Setup
  • Add the lua-function: nyagos.atou_if_needed that converts the string that is not valid utf8 one to utf8-string as the current codepage string.

Fixed bugs

  • #433 To avoid garbled characters, backquote uses nyagos.atou_if_needed to prevent UTF8 from being further converted to UTF8. ( Thanks to @kgasawa )
  • Fix: On linux version, backquotation failed with error and did not work. ( because the lua function atou always returned "not supported", it is changed to returning the same value with given )
  • #432 When set -o glob, * and ? double-quoted were expanded as wildcards (They should not be) ( Thanks to @juggler999 )
  • Fix the problem that more, nyagos.getkey, and nyagos.getviewwidth might not work on Windows 7, 8.1 and Windows Server 2008 at v4.4.13_3.
  • #434 Fix: nyagos.which('cp') does not work as expect on Linux (Thanks to @ousttrue)
  • Fix: the background color of U+3000 was not changed to red

Breaking changes

  • nyagos.default_prompt and nyagos.prompt return the prompt-string instead of output it to the terminal directly. This modifying is to use the new field PromptWriter of the go-readline-ny.Editor instead of Prompt that is deprecated.

当バージョンのバイナリは Go 1.20.9 でビルド。
サポート対象は Windows 7, 8.1, 10, 11, WindowsServer 2008以降, Linux となります。

新機能

  • nyagos.d/suffix.lua: 環境変数 NYAGOSEXPANDWILDCARD にリストされているコマンドのパラメータはワイルドカードを自動展開するようにした(例:nyagos.env.NYAGOSEXPANDWILDCARD="gorename;gofmt"
  • #432 新オプション glob_slash を追加。設定されている時(起動オプション:--glob-slash, lua関数: nyagos.option.glob_slash=true、コマンドライン:set -o glob_slash)、ワイルドカード展開で / を使う
  • SKK (Simple Kana Kanji conversion program) サポート - 設定方法
  • 適切なUTF8文字列でない時は ANSI文字列とみなして UTF8変換を試みる関数 nyagos.atou_if_needed を追加

不具合修正

  • #432 set -o glob 時、二重引用符内の*,? がワイルドカードとして展開されていた(本来されるべきではない) ( Thanks to @juggler999 )
  • Linux版で逆クォートがエラーになって機能しない不具合を修正 (Lua関数 atou が常に "not supopported" を返していたので、引数と同じ値を戻すようにした)
  • #433 文字化けを避けるために、逆クォートでは nyagos.atou_if_needed を使って、UTF8 を更に UTF8 化させないようにした ( Thanks to @kgasawa )
  • v4.4.13_3 で、more, nyagos.getkey, nyagos.getviewwidth が Windows 7, 8.1 や WindowsServer 2008 で動かない問題を修正
  • #434 Lua で nyagos.which('cp') が機能しない問題を修正 (Thanks to @ousttrue )
  • 全角空白(U+3000)の背景色が赤くなっていなかった不具合を修正

破壊的変更

  • nyagos.default_promptnyagos.prompt は直接ターミナルへプロンプトを出力するのではなく、プロンプト文字列を戻り値として返すようにした。(go-readline-ny.Editor の deprecated フィールドの Prompt ではなく、PromptWriter を使用するための修正)

nyagos-20231006

Don't miss a new nyagos release

NewReleases is sending notifications on new releases.