Project

General

Profile

Actions

Hrename » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 03/26/2020 09:50 AM


Added in 3.9

/hrename <table> <newtable>

Renames a hash table.

Parameters

<table> - The table name to rename.
<newtable> - The new table name.

Example

alias testrename {
  hmake table
  hadd table item value
  echo -sg $hget(table, item)
  hrename table newtable
  echo -sg $hget(newtable, item)
}

Updated by Per Amundsen almost 5 years ago · 1 revisions

Also available in: PDF HTML TXT