Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getfield implementation splits only on character and not string #70

Open
axel3rd opened this issue Jul 19, 2022 · 0 comments · May be fixed by #71
Open

getfield implementation splits only on character and not string #70

axel3rd opened this issue Jul 19, 2022 · 0 comments · May be fixed by #71

Comments

@axel3rd
Copy link

axel3rd commented Jul 19, 2022

As documented for getfield, it splits a string on a character or string.

Currently the TesTcl implementation does the split only on character because split is only on chars:

TesTcl/src/global.tcl

Lines 123 to 127 in bd55ca9

proc ::testcl::getfield { str delim ind } {
log::log debug "GLOBAL::getfield $str $delim $ind invoked"
return [lindex [split $str $delim] [expr {$ind - 1}]]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant