I do not understand the option -real
% lsearch -real {0 1 2} 0.0
-1
% lsearch -real {0 1 2} 0
0
% lsearch -real {0.0 1 2} 0.00
-1
% lsearch -exact {0.0 1 2} 0.00
-1
% lsearch -exact {0.0 1 2} 0.0
0
%
------------
it does not recognize
0 in {0 1 2} as the same as 0.0
0.0 in {0.0 1 2} as the same as 0
------------
to do a exact matching I could use: lsearch -exact ..
-----------
so how shall I expect the option -real is working?
---------
Thanks for responding!
Manfred
I do not understand the option -real
% lsearch -real {0 1 2} 0.0
-1
% lsearch -real {0 1 2} 0
0
% lsearch -real {0.0 1 2} 0.00
-1
% lsearch -exact {0.0 1 2} 0.00
-1
% lsearch -exact {0.0 1 2} 0.0
0
%
------------
it does not recognize
0 in {0 1 2} as the same as 0.0
0.0 in {0.0 1 2} as the same as 0
------------
to do a exact matching I could use: lsearch -exact ..
-----------
so how shall I expect the option -real is working?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 29:54:30 |
Calls: | 6,669 |
Calls today: | 1 |
Files: | 12,216 |
Messages: | 5,338,095 |