troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

pimctl regression: 'log ?' and 'debug ?' commands don't work #176

Closed troglobit closed 3 years ago

troglobit commented 3 years ago

In the git master, as of da6f4c3, the pimctl commands to query debug systems and log levels does not work in FreeBSD with /bin/csh.

troglobit commented 3 years ago

Works if the ? character is escaped, because in csh:

"The character `?' matches any single character in a filename." -- https://docs.freebsd.org/44doc/usd/04.csh/paper-1.html#section7

Example:

root@beasdie:~/pimd # ./src/pimctl debug \?
all, asserts, bsr, crp, detail, igmp, interfaces, jp, kernel, mfc, mrt, neighbors, packets, pim, registers, rpf, rsrr, timers, traceroute
root@beasdie:~/pimd # ./src/pimctl debug 
none
root@beasdie:~/pimd # ./src/pimctl log \?
alert, crit, debug, emerg, err, error, info, none, notice, panic, warn, warning
root@beasdie:~/pimd # ./src/pimctl log 
notice
root@beasdie:~/pimd #