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 Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux