bug-bash
[Top][All Lists]
Advanced

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

Re: why must non-standard $IFS members be treated so differently ?


From: DJ Mills
Subject: Re: why must non-standard $IFS members be treated so differently ?
Date: Mon, 30 Jul 2012 12:36:37 -0400

On Sun, Jul 29, 2012 at 10:23 AM, Jason Vas Dias
<jason.vas.dias@gmail.com> wrote:
>
>      function count_colons {  IFS=':' ;    v=($@);  echo ${#v[@]}; }
>
>

count_colons() { local n=${*//[!:]}; printf '%s\n' "${#n}"; }



reply via email to

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