nushell / nushell/nushell.github.io

Documentation on type path doesn't match behaviour

オープン
#2,155 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
258
フォーク
561
平均マージ
3時間 20分
マージ済み PR(30日)
15

説明

String won't be expanded into a fully pathname when passed as an arguments with type of path

Document

Doc's here Nushell Type Path

def show_difference [
 p: path
 s: string
] {
 print $"The path is expanded: ($p)"
 print $"The string is not: ($s)"
}

# Results
cd ~/testing
show_difference . .
# => The path is expanded: /home/username/testing
# => The string is not: .

Actually

show_difference . .
# => The path is expanded: .
# => The string is not: .

nu --version
# => 0.112.2

You wouldn't be surprised. Code changes fast around here. Just a reminder
I like nushell, thanks for all works of yours

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされている Nushell Type Path のドキュメントから始め、その例を Nushell 0.112.2 で報告されている動作と比較してください。編集する前に現在の動作を確認してください。パス引数と文字列引数がどのように処理されるかをドキュメントが正確に説明していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。