Skip to main content

scriptname_get

Function scriptname_get 

Source
pub fn scriptname_get() -> Option<String>
Expand description

!!! WARNING: RUST-ONLY HELPER !!! No C counterpart exists as a standalone function. Reader for the same storage; C dereferences the char *scriptname global at Src/utils.c:36 in place. Read scriptname — direct mirror of the C file-scope char *scriptname; at Src/utils.c:36. Exposed for the prompt expander (%N), bin_dot, and ZLE source tracking.