ColinIanKing / stress-ng

This is the stress-ng upstream project git repository. stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.
https://github.com/ColinIanKing/stress-ng
GNU General Public License v2.0
1.82k stars 290 forks source link

stress-ng.1: Add a hint that '?' may need to be escaped #438

Closed chrfranke closed 1 month ago

chrfranke commented 1 month ago

Testcase:

$ stress-ng --class vm?
class 'vm' stressors: bad-altstack ...  vm-splice

$ touch vmx

$ stress-ng --class vm?
Unknown class: 'vmx', available classes: compute ...  vm

$ echo stress-ng --class vm?
stress-ng --class vmx

$ stress-ng --class vm\?
class 'vm' stressors: bad-altstack ...  vm-splice

$ stress-ng --class vm'?'
class 'vm' stressors: bad-altstack ...  vm-splice

I agree that the above may be a rare case.

If shell wildcards ?, * or [...] are used as fixed string parameters, it possibly makes sense to add a hint to the man page that escape or quoting is possibly required.

Alternatively use another suffix, e.g. --class vm,q (query).