Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DAY 033: COMMAND$
#4
Thumbs Up 
I like the way this "COMMAND$" was changed for QB64.

With QuickBASIC and MS-DOS it was impossible to get lowercase letters from the terminal prompt. Although that's not the reason why the GNU people responsible for "getopt" library decided to create the "long" options besides cryptic switches like "-rf" and "-Fs" ...

Before making "COMMAND$" like an array there was the task of creating a dynamic string array to process the whole "COMMAND$" value according to spaces. It worked well, but I easily abandoned it in favor of "COMMAND$(1)" and so on.

The "flaw" with "COMMAND$(0)" was inherited from the C runtime library and some ancient libraries and scripts for Unix and descendants actually depend on it.
Reply


Messages In This Thread
DAY 033: COMMAND$ - by Pete - 12-13-2022, 06:48 PM
RE: DAY 033: COMMAND$ - by SMcNeill - 12-13-2022, 07:14 PM
RE: DAY 033: COMMAND$ - by Pete - 12-13-2022, 07:53 PM
RE: DAY 033: COMMAND$ - by SMcNeill - 12-13-2022, 09:12 PM
RE: DAY 033: COMMAND$ - by mnrvovrfc - 12-13-2022, 07:58 PM
RE: DAY 033: COMMAND$ - by SMcNeill - 12-13-2022, 09:26 PM
RE: DAY 033: COMMAND$ - by Dav - 12-14-2022, 01:21 AM
RE: DAY 033: COMMAND$ - by vince - 12-14-2022, 01:31 AM
RE: DAY 033: COMMAND$ - by SMcNeill - 12-14-2022, 01:43 AM
RE: DAY 033: COMMAND$ - by mnrvovrfc - 12-14-2022, 08:27 AM



Users browsing this thread: 2 Guest(s)