Skip to main content

emptycmdnamtable

Function emptycmdnamtable 

Source
pub fn emptycmdnamtable()
Expand description

Port of emptycmdnamtable(HashTable ht) from Src/hashtable.c:623.

C body:

emptyhashtable(ht);
pathchecked = path;

Drops every PATH cache entry (used by hash -r) and resets the per-PATH-entry “checked” cursor so subsequent lookups re-scan from the start. WARNING: param names don’t match C — Rust=() vs C=(ht)