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

From: Wolfram Sang
Date: Mon Sep 06 2021 - 08:21:57 EST



> 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!

Attachment: signature.asc
Description: PGP signature