Re: [PATCH 1/1] gpio: add sloppy logic analyzer using polling

From
Wolfram Sang <wsa+renesas@sang-engineering.com>
Date
2021-09-06 12:21:35
Also in
linux-renesas-soc, lkml
Reply to
Andy Shevchenko, 2021-09-06
Yes, it means you are not able to use * (a.k.a. glob() function) in
the shell which increases a lot security and other (misuse) concerns.
Instead you have to use `find` or similar tools to collect the list of
the files of your interest.
I see. I don't think this is relevant for the script here, but I'll try
it nonetheless for educational reasons.
To me it's less error prone to have something like this:

while [ $# -gt 1 ]; do # notice the condition, btw
  case "$1" in
  opt_with_parameter) ...; shift;;
  toggler_opt) ...;;
  esac
  shift
done
Ok, I like it. Thanks!

Attachments

Thread (6 messages) 6 messages, 2 authors, last reply 2021-09-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help