Windows: 메뉴 머리말의 큰따옴표 때문에 fzf가 바로 끝나는 문제 수정
상태 블록의 '로그' 줄에 Ollama 로그(error="Get \"https://...")가 들어가면 Windows PowerShell 5.1이 --header 인자를 잘못 쪼개 fzf가 'unknown option'으로 종료 → 메인 메뉴 대신 종료 확인 창만 반복됨. fzf에 넘기기 전 머리말의 큰따옴표를 작은따옴표로 바꿈. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnDmXvY8ekNA8cQwBmcsUE
This commit is contained in:
@@ -557,6 +557,9 @@ function Show-MenuCore {
|
|||||||
for ($i = 0; $i -lt $Items.Count; $i++) {
|
for ($i = 0; $i -lt $Items.Count; $i++) {
|
||||||
$lines.Add("$i$TAB$($Items[$i].Label)$TAB$($Items[$i].Key)")
|
$lines.Add("$i$TAB$($Items[$i].Label)$TAB$($Items[$i].Key)")
|
||||||
}
|
}
|
||||||
|
# 머리말에 큰따옴표가 있으면(예: Ollama 로그의 error="...") Windows PowerShell 5.1이
|
||||||
|
# 인자를 잘못 쪼개 fzf가 'unknown option'으로 끝나므로 작은따옴표로 바꿔서 넘김
|
||||||
|
$Header = $Header -replace '"', "'"
|
||||||
$fzfArgs = @(
|
$fzfArgs = @(
|
||||||
'--ansi', '--no-multi', '--cycle',
|
'--ansi', '--no-multi', '--cycle',
|
||||||
"--delimiter=$TAB", '--with-nth=2',
|
"--delimiter=$TAB", '--with-nth=2',
|
||||||
|
|||||||
Reference in New Issue
Block a user