Hrename » History » Version 2
Per Amundsen, 02/16/2023 12:45 PM
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 | 2 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | <table> | The table name to rename. | |
||
12 | | <newtable> | The new table name. | |
||
13 | 1 | Per Amundsen | |
14 | *Example* |
||
15 | |||
16 | <pre> |
||
17 | alias testrename { |
||
18 | hmake table |
||
19 | hadd table item value |
||
20 | echo -sg $hget(table, item) |
||
21 | hrename table newtable |
||
22 | echo -sg $hget(newtable, item) |
||
23 | } |
||
24 | </pre> |