Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command$ issues
#2
This is a feature of the command line shell, not anything QB64 is doing, so from a program standpoint there's nothing that can fix this. If you use an unquoted * then the shell automatically expands it into a list of all the files in the current directory. * isn't the only special character either, plenty of other character do special stuff and require quoting (Ex. `>` and `<` for redirection)

Ideally anyone who uses command line programs often would understand the need to quote this kind of input so I wouldn't really worry about it much personally, it's just something to mention in documentation.

As for the `Modify COMMAND$` dialog in the QB64 IDE, that's an interesting case but I think having the IDE treat it as it would work on the command line (for that host) is probably the best behavior, even if it's a bit surprising. Any quoting we attempted would screw up the individual command entries (`Command$(i)`) so it would be annoying in different ways. Additionally it wouldn't really fix your problem, anybody who goes to use the program outside the IDE will still need to do the quoting so the IDE would be giving you a false sense of how it actually works in practice
Reply


Messages In This Thread
Command$ issues - by eoredson - 04-09-2025, 04:23 AM
RE: Command$ issues - by DSMan195276 - 04-09-2025, 04:53 AM
RE: Command$ issues - by mdijkens - 04-09-2025, 02:53 PM
RE: Command$ issues - by hsiangch_ong - 04-09-2025, 03:15 PM
RE: Command$ issues - by eoredson - 04-09-2025, 09:59 PM
RE: Command$ issues - by eoredson - 04-14-2025, 02:03 AM
RE: Command$ issues - by mdijkens - 04-14-2025, 08:18 AM
RE: Command$ issues - by eoredson - 04-14-2025, 11:12 PM
RE: Command$ issues - by eoredson - 05-02-2025, 01:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help: Issues with the _PRINTSTRING and _INPUTBOX$ functions in QB64. qbfans 2 350 02-13-2026, 06:07 AM
Last Post: qbfans
  Command$(count%) - I can't get a value when using the optional argument "(count%)" Unatic 3 518 08-22-2025, 11:58 AM
Last Post: Unatic
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,132 07-22-2025, 08:35 PM
Last Post: hsiangch_ong
  Shell issues eoredson 7 1,319 05-10-2025, 02:59 AM
Last Post: eoredson
  Locate command on the ttf graphical screens Helium5793 5 702 03-09-2025, 05:47 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)