[Gambas-bugtracker] Bug #1640: Arguments created on properties screen are ignored by Application.Args class

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon Sep 23 00:13:54 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1640&from=L21haW4-

Comment #5 by Tony MOREHEN:

I have a text editor program.  My Run drop down menu looks like:

No argument
-------------
~/bulk-reencode.sh
+10
./gambas.txt
+10 ./gambas.txt
-------------
Edit arguments

I want to be able to select more than one of those argument.  This would be more flexible and more closely mimic the way bash creates a commandline.

Say I select arguments 1 and 3.  This would get me the following command line:
myEditor ~/bulk-reencode.sh ./gambas.txt  
with an args.count of 3 and lets me test my editor opening more than one file at a time.

Similarly, selecting 2 and 3, yields the following commandline, with an args.count of 3:
myEditor +10 ./gambas.txt.   This lets me test opening gambas.txt and going to line 10.  This follows bash's approach.

Selecting argument 4 generates a similarily looking commandline:
myEditor +10 ./gambas.txt    but the args.count is only 2 as argument 4 is treated by the parser as a single argument ie as a filename with an embedded space.  This breaks with bash's behaviour.

Tony MOREHEN changed the state of the bug to: Accepted.




More information about the Bugtracker mailing list