[問題] shell script一問

作者: RichieRich (Richie)   2023-12-08 10:00:04
當字串多一個:+就往右執行下個command
if [ -n "${user_val:+x}" ]
請問一下這個:+x是在辦斷啥?
作者: peterbrucele (DM5)   2023-12-08 11:48:00
bash manual:parameter expansion
作者: glo6e (ezdodance)   2023-12-25 22:53:00

Links booklink

Contact Us: admin [ a t ] ucptt.com