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

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

 



> 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


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux