# 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 
- List: linux-gpio
- Page: https://ratatoskr.run/linux-gpio/2021/09/1498280
- Thread: https://ratatoskr.run/linux-gpio/2021/09/1495096/t.md

```text

> 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

- [signature.asc](https://ratatoskr.run/linux-gpio/2021/09/1498280/attachment/0) (application/pgp-signature, 833 bytes)
