scalar parameter xxxxx created globally in function xxxx
生活随笔
收集整理的這篇文章主要介紹了
scalar parameter xxxxx created globally in function xxxx
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
build_prompt:1: scalar parameter RETVAL created globally in function build_prompt
build_prompt:2: scalar parameter segment created globally in function build_prompt
這個信息總是偶爾出現,
?
解決方案:
local RETVAL
關于segment這個變量的提示信息還沒有解決
?
?
build_prompt() {
? RETVAL=$?
? for segment in $BULLETTRAIN_PROMPT_ORDER
? do
? ? prompt_$segment
? done
? prompt_end
}
?
改為:
?
build_prompt() {
? RETVAL=$?
? local segment
? for segment in $BULLETTRAIN_PROMPT_ORDER
? do
? ? prompt_$segment
? done
? prompt_end
}
?
?
總結
以上是生活随笔為你收集整理的scalar parameter xxxxx created globally in function xxxx的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 优酷app很卡(优酷客户端下载中心)
- 下一篇: dnf换装在哪里刷 DNF装备搭配计算器