updated correctly in the "pushd" and "popd" built-ins.
* The effect of "!" no longer applies to the exit status of the
"break", "continue", and "return" built-ins.
+ . Updated the sample initialization script (yashrc):
+ + The "o" alias for WSL
----------------------------------------------------------------------
Yash 2.53 (2022-08-23)
組込みで $DIRSTACK 変数の値が正しく更新されていなかった
* "break", "continue", "return" 組込みの終了ステータスが "!" で反転
されていた
+ . 初期化スクリプト (yashrc) のサンプルを更新:
+ + WSL 用の "o" エイリアスを定義
----------------------------------------------------------------------
Yash 2.53 (2022-08-23)
# an alias that opens a file
if command --identify xdg-open >/dev/null 2>&1; then
alias o='xdg-open'
+elif command --identify cmd.exe wslpath >/dev/null 2>&1; then
+ alias o='open'
+ open() (
+ target="$(wslpath -w "$1")"
+ cd /mnt/c # suppress UNC path warning
+ cmd.exe /c start "$target"
+ )
elif command --identify cygstart >/dev/null 2>&1; then
alias o='cygstart'
elif [ "$(uname)" = Darwin ] 2>/dev/null; then