[LinuxCNC/linuxcnc Issue#567] halcmd alias command deletes original pin/parameter

未分类 bolang 5个月前 (10-15) 28次浏览

Issue #567 | 状态: 已关闭 | 作者: pcw-mesa | 创建时间: 2019-03-08


Halcmds alias function deletes the original pin/parameter
contrary to the man page for halcmd.

This is true on LinuxCNC 2.7 and 2.8

To test
halcmd alias pin motion.adaptive-feed maf
halcmd show pin | grep adaptive
(motion.adaptive-feed is gone)


评论 (6)

#1 – andypugh 于 2019-03-08

Curious. Do you think that this needs a fix to the docs, or should both pins exist?


#2 – pcw-mesa 于 2019-03-09

My opinion is that because that function is called “alias” it should not remove the original name
wonder what the author thinks…
(also removing names leads to some pretty weird situations where say signals are netted to pins
in the hal file that disappear… I suspect this is OK since I guess names just resolve to pointers but still weird…)


#3 – andypugh 于 2019-03-09

I tested part of that, if you alias a pin it remains in the same net with the new name.


#4 – andypugh 于 2019-03-09

This might just be an issue with “show pin”. You can still use the original name in a net command.
(and “show pin” shows the alias netted to the new signal)


#5 – pcw-mesa 于 2019-03-09

OK thanks for testing that, I guess this makes some kind sense of sense as a listing of
pin –> signals connections would be a bit confusing with multiple names I think I will close this
with a note that this behavior could be better documented.


#6 – andypugh 于 2019-03-09

8841b630976745a8c38a3b2318762c1c1e3fb783


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/567

喜欢 (0)