Hrename » History » Version 1
Per Amundsen, 03/26/2020 09:50 AM
1 | 1 | Per Amundsen | _Added in 3.9_ |
---|---|---|---|
2 | |||
3 | */hrename <table> <newtable>* |
||
4 | |||
5 | Renames a [[/hmake|hash table]]. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | <table> - The table name to rename. |
||
10 | <newtable> - The new table name. |
||
11 | |||
12 | *Example* |
||
13 | |||
14 | <pre> |
||
15 | alias testrename { |
||
16 | hmake table |
||
17 | hadd table item value |
||
18 | echo -sg $hget(table, item) |
||
19 | hrename table newtable |
||
20 | echo -sg $hget(newtable, item) |
||
21 | } |
||
22 | </pre> |