【发布时间】:2021-02-03 15:00:16
【问题描述】:
我正在尝试使用busctl 将double 类型的属性设置为负值。正值很好:
busctl set-property com.acme.foo /com/acme/foo com.acme.foo.Interface inflation d 1.0
但尝试将其更改为负值会出现以下错误:
busctl set-property com.acme.foo /com/acme/foo com.acme.foo.Interface inflation d -1.0
busctl: invalid option -- '1'
我尝试了一些显而易见的方法,例如将-1.0 放在单引号、双引号中或使用反斜杠转义-。有一个-- 选项,但这似乎没有任何效果。
【问题讨论】: