Subj : Re: GoldMine - Connecting from Synchronet BBS To : Gamgee From : Digital Man Date : Tue Oct 29 2024 19:57:22 Re: Re: GoldMine - Connecting from Synchronet BBS By: Gamgee to Digital Man on Tue Oct 29 2024 08:31 pm > -=> Digital Man wrote to Gamgee <=- > > > > DM> Does that work with multi-word user aliases? You might have to do > > > DM> something like this to be compatible with multi-word aliases: > > > DM> "[TAG]%A" - the capitalize the 'A' to prevent the auto-quoting > > > DM> and add quotes around the entire name with the [TAG] part. > > > > It does NOT work with multi-word alias, unless the quotes are also > > > used. Then it gets a little weird... When using the quotes, neither > > > %a nor %A expand to the user's alias, they just show as "%a" or "%A". > > > Yeah, I'm not surprised. The additional quotes was just an idea, but > > looking at the source code now, I see there's no special handling of > > quotes on command-lines within SBBS. > > DM> Actually, I take that back, there is, so I would expect something like > DM> "-s[TAG]%A" to work as you intend. > > It does, but see below... > > > > Without the quotes, the %a or %A work, but only with a single-word > > > [TAG]. > > > Yup, I can see how that'd be the case. > > DM> I just committed a trivial update to rlogin.js that'll allow you to > DM> specify the -s (or -c) option multiple times to build up the auth > DM> string, e.g. > > DM> ?rlogin server -s[TAG] -s %a > > DM> But the other way (with the quotes and no spaces) should work too. > > Thanks for the update. Both ways do indeed work now, with this > difference: > > If I define either of those methods as the command line for my external > event/door, it works as expected, and produces this output on the > Goldmine site as the current user: [PAL]Gamgee > > If I run either of those command lines while sitting at a prompt on my > BBS, using the ;EXEC command and then typing the command line, I get > this output on the site: [PAL]%A That's expected. I just committed a trivial change to str_cmds.js so that it *will* now expand command-line specifiers that you pass on the command-line using the ;exec sysop command, so that should work if you update. > So for some reason the alias variable is not being evaluated when run > "manually". > > Is the case of the %a or %A significant? Both show as "%A" on the > output if that means anything. It sounds like you're using a command shell that is converting the input to all-caps. Here's how it works for me using default.js and the updated str_cmds.js (and demonstrates the difference between %a and %A): þ Main þ 0:07:22 [4] fsxNet [11] FSX BBS: ;exec Command-line: ?showargs %a argc = 1 argv[0] = 'Digital Man' þ Main þ 0:07:56 [4] fsxNet [11] FSX BBS: ;exec Command-line: ?showargs %A argc = 2 argv[0] = 'Digital' argv[1] = 'Man' showargs.js is just this (for test/demo purposes): print("argc = " + argc); for(i=0;i