hal-get-property bug or usage misunderstanding?

David Zeuthen david at fubar.dk
Sat Jun 19 04:08:27 PDT 2004

On Sat, 2004-06-19 at 13:02 +0200, Sjoerd Simons wrote:
> On Mon, Jun 14, 2004 at 02:02:31PM +0200, Ralph Aichinger wrote:
> > halt-get-property seems to do this, but it has no manpage, just a very
> > terse --help message. When I do 
> > 
> > |client21% hal-get-property --udi 
> > |'/org/freedesktop/Hal/devices/pci_8086_7190' --key 'info.bus'
> > |hal-get-property 0.2.92
> > |
> > |Type is string
> > 
> > I get no information about the *contents* of 'info.bus', just its type.
> > Is this a bug in hal-get-property or am I just too stupid to use it?
> It seems that hal-get-property doesn't add a newline at the end.. So adding a 
> ; echo at the end of your command will show you the info ;)

Yeah, this is actually intentional, the only thing that goes to stdout
is the value of the property, all the rest go to stderr. This is so
people can get away with doing a FOO=`hal-get-property -udi blah -key

But, yeah there should probably be a manpage stating all this; with time
we'll have one :-)


hal mailing list
hal at freedesktop.org

More information about the Hal mailing list