Was the post before you found the cause or are you asking why it throws an error on the set command with glob_compat_mode / "special characters" handling turned on? Whether or not a database is loaded doesn’t/shouldn’t affect whether glob_compat_mode is set (and doesn’t appear to for me).
With globbing on, that set command will match against a db object containing a single char of ‘l’, ‘i’, ’s’, ’t’, ‘p’, ‘1’, ‘2’, ‘ ‘, and maybe ‘$’… which of course isn’t likely to match so it’s equivalent to “set l1” without any args, resulting in an error message. If there does happen to be a db with a single-char object matching, then one will of course get different behavior when that database is loaded vs loaded (i.e., single char list vs error). Cheers! Sean > On Jan 22, 2021, at 2:13 AM, Daniel Roßberg <danielmrossb...@gmail.com> wrote: > > Hi Sean, > > Yep, see https://sourceforge.net/p/brlcad/bugs/393/ > <https://sourceforge.net/p/brlcad/bugs/393/>. It's the "Special Characters" > setting. > > Regards, > Daniel > > Am Do., 21. Jan. 2021 um 22:22 Uhr schrieb Christopher Sean Morrison via > brlcad-devel <brlcad-devel@lists.sourceforge.net > <mailto:brlcad-devel@lists.sourceforge.net>>: > > >> On Jan 20, 2021, at 2:54 AM, Daniel Roßberg <danielmrossb...@gmail.com >> <mailto:danielmrossb...@gmail.com>> wrote: >> >> Why does the following code behave differently in mged, depending on if a >> database is loaded or not: >> >> set P1 "0 0" >> set P2 "1 1" >> set L1 [list $P1 $P2] > > What do you mean? I get "{0 0} {1 1}" regardless of opening a database or > not, which is what I’d expect and matches what tclsh reports: > > mged> set glob_compat_mode 0 > 0 > mged> set p1 "0 0" > 0 0 > mged> set p2 "1 1" > 1 1 > mged> set l1 [list $p1 $p2] > {0 0} {1 1} > mged> puts $l1 > {0 0} {1 1} > > agua:~ morrison$ tclsh > % set p1 "0 0" > 0 0 > % set p2 "1 1" > 1 1 > % set l1 [list $p1 $p2] > {0 0} {1 1} > % echo $l1 > {0 0} {1 1} > > Are you seeing something different? > > Cheers! > Sean > > > _______________________________________________ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net <mailto:brlcad-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > <https://lists.sourceforge.net/lists/listinfo/brlcad-devel> > _______________________________________________ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel
_______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel