> This:
 > 
 > % eval $(dladm show-wifi -p)
 > 
 > would be great (though only if dladm quotes things like ESSIDs
 > correctly!).

What are you expecting it to do -- create a set of environment variables?

 > % dladm show-wifi -p -o essid,bssid | read essid bssid
 > 
 > not so much, because the shell read built-in simply splits the line into
 > two using $IFS, and ESSID could contain whitespace (which is typically
 > in $IFS).

That's why the various field values are double-quoted.

-- 
meem
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to