[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Resetting a USB port in Debian 10



On Thu, 2022-05-19 at 13:38 -0400, Greg Wooledge wrote:
> On Thu, May 19, 2022 at 06:24:21PM +0100, Tixy wrote:
> > On Thu, 2022-05-19 at 07:00 -0400, Greg Wooledge wrote:
> > > 1) For ** to work, you need to do "shopt -s globstar" somewhere before it.
> > 
> > I didn't know that, it works for me without setting that option.
> > 
> > $ shopt | grep globstar
> > globstar       	off
> > $ echo /sys/bus/usb/drivers/usb/**/serial
> > /sys/bus/usb/drivers/usb/usb1/serial
> > /sys/bus/usb/drivers/usb/usb2/serial
> > /sys/bus/usb/drivers/usb/usb3/serial
> > /sys/bus/usb/drivers/usb/usb4/serial
> 
> You're getting the exact same results you'd get from
> /sys/bus/usb/drivers/usb/*/serial

Indeed, I am. So for my script I don't need ** as there is only a
single unknown directory in the path I'm interested in.

-- 
Tixy


Reply to: