octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56809] Dots in script file names should be al


From: Michael Leitner
Subject: [Octave-bug-tracker] [bug #56809] Dots in script file names should be allowed
Date: Fri, 30 Aug 2019 08:54:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #7, bug #56809 (project octave):

You see, I am not familiar with all peculiarities of octave's syntax, much
less with the mechanisms how they are enforced. And if octave's syntax was
drawn up from scratch (and no matlab precedent existed) and somebody asked me,
I probably would vote against having the possibility of running scripts by
just typing the script's filename excluding the suffix at the command line at
all. After all, python and R shells are doing fine with the equivalents of
source(...), which also in the present case would have no problems with dots,
spaces or equalities. 

It's just that on the one hand the possibility does exist and is arguably the
standard way of running scripts used by people, and on the other hand it would
be nice if dots were allowed in script file names (I don't care about spaces).
And that it seemed to me that the concept of script files is recognized at an
unnecessarily deep level in the present implementation (see the reported error
for script(1) or script+1). It still seems to me that after splitting any
entered command at the semicolons, a script name has always to appear in
isolation. This would have allowed to distinguish the parsing into the first
case "it is potentially a complex expression, but no script names appear"
(including your case of "foo bar"), failing which the second case "it is a
single script file name without any arguments or operands" would be tried, in
which case the dot would not have a special meaning any more. Am I wrong
here?



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56809>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]