bug-gnu-pspp
[Top][All Lists]
Advanced

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

PSPP-BUG: [bug #23182] Changing the command line interface of PSPPire


From: Ben Pfaff
Subject: PSPP-BUG: [bug #23182] Changing the command line interface of PSPPire
Date: Wed, 07 May 2008 00:23:16 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-1)

Follow-up Comment #2, bug #23182 (project pspp):

>How should psppire know what to do with a filename given as an 
>argument? It has to decide whether to open it as a system file, 
>portable file or syntax file. Can we rely on the filename suffix?

It is easy to detect that a file is a system file or portable file: we
already have code to do so in data/any-reader.c.  It works based on the file's
content, not its name.

We could probably assume that any file that appears to be text, but which is
not a system file or portable file, is a syntax file.

This logic would not have to be exclusive to psppire.  It would also be
useful to accept system and portable file names on the pspp command and
perform an implicit 'GET' or 'IMPORT' on them.

>We need to make sure that we get the syntax of the command line 
>right, as subsequent changes in later versions causes pain for 
>users.

Yes.  I neglected this in some earlier releases.  I think that that was a
mistake.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23182>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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