Canop/broot

Username with one or more spaces causes an error

クローズ

#849 opened on 2024/03/07

 (9 件のコメント) (1 件のリアクション) (0 人の担当者)Rust (213 件のフォーク)batch import
bughelp wantedwindows

Repository metrics

Stars
 (9,383 個のスター)
PR merge metrics
 (平均マージ 53m) (30d で 1 merged PR)

説明

Steps to reproduce

  1. (optional) change your username to include one or more spaces
  2. If you have already br installed, run br --install
  3. run broot --install
  4. the command above creates $HOME\Documents\WindowsPowershell\Profile.ps1 with the following contents (when username is "User Name")
. C:\Users\User\ Name\AppData\Roaming\dystroy\broot\config\launcher\powershell\br.ps1

Possible solution

Use $HOME environment variable instead so windows will automatically expand it on execution appropriately.

コントリビューターガイド