bug-bash
[Top][All Lists]
Advanced

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

Re: Request to a new feature on read


From: Valentin Bajrami
Subject: Re: Request to a new feature on read
Date: Thu, 16 Apr 2015 16:40:06 +0200

While I was  developing a small script,  I thought about how to use -N flag to a greater extent. Although  -N in its own is very limited. It does serve the purpose but not what I need.  I also discussed this in #bash freenode,  and got some ideas like:

pgas:   while read -n1 d;do case $d in '')break;;  [0-9])var+=$d;;*) echo error;;esac;done

A for loop is probably not such a bad idea either. I'll try and see if I can figure out something.

Thanks

On Thu, Apr 16, 2015 at 3:55 PM, Eduardo A. Bustamante López <dualbus@gmail.com> wrote:
Any reason to justify this instead of using a simple loop?

--
Eduardo Bustamante
https://dualbus.me/



--
Met vriendelijke groet,

Valentin Bajrami

reply via email to

[Prev in Thread] Current Thread [Next in Thread]