Subject: Re: bin/36606: envstat -s does not work
To: None <gnats-bugs@NetBSD.org, netbsd-bugs@netbsd.org, juan@xtrarom.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/05/2007 02:14:33
Hello,

At Wed,  4 Jul 2007 17:10:07 +0000 (UTC),
Juan Romero Pardines wrote:
> The following reply was made to PR bin/36606; it has been noted by GNATS.
> 
> From: Juan RP <juan@xtrarom.org>
> To: gnats-bugs@NetBSD.org
> Cc: hira@po6.nsk.ne.jp
> Subject: Re: bin/36606: envstat -s does not work
> Date: Wed, 4 Jul 2007 19:08:30 +0200
> 
>  On Wed,  4 Jul 2007 17:05:00 +0000 (UTC)
>  hira@po6.nsk.ne.jp wrote:
>  
>  > >Description:
>  > 	Since merging envsys2, envstat -s does not work.
>  > 
>  > % envstat -l | grep "acpibat0 charge"
>  > acpibat0 charge rate
>  > acpibat0 charge
>  > % envstat -s "acpibat0 charge" -i 10
>  > envstat: unknown sensor `acpibat0 charge'
>  > % 
>  
>  If you want to use the '-s' flag, you have to use the '-d' flag too.
>  
>  Otherwise if there are sensors with the same description there's no easy
>  way which to choose.
>  
>  Please see envstat(8), it's all explained there.

Sorry, I missed about '-d'.
However, please fix first example of envstat(8).

  EXAMPLES
       Display the ``acpibat0 charge'' sensor on one line every ten seconds:

             $ envstat -s "acpibat0 charge" -i 10

best regards.
-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp