usb-serial/list-ttys.sh: Broken when a debugger offers multiple serial ports #15814
Labels
Area: tools
Area: Supplementary tools
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
Some USB devices offer multiple serial interfaces. The
list-ttys.sh
bash script used to be able to show these all as belonging to the same USB device. This is probably broken since #15351 and now multiple directories found byfind
are returned as a single string.Steps to reproduce the issue
run
make -C examples/hello-world list-ttys
with a hifive1b connected, or another board that has a debugger with multiple serial ports.Expected results
Actual results
Versions
Possible fix
As the script is already an bash script, a fix would be to store the result from find in an array like this:
https://stackoverflow.com/questions/23356779/how-can-i-store-the-find-command-results-as-an-array-in-bash/54561526#54561526
The text was updated successfully, but these errors were encountered: