From: Masatsugu Nagata (nagata@KURIMS.KYOTO-U.AC.JP)
Date: 16 Sep 99, 01:21 EST
From: Masatsugu Nagata <nagata@KURIMS.KYOTO-U.AC.JP> Subject: "saveas -f filename" Aaron Montgomery wrote: > I'm poking around in the C source code for the I/O routines in Alpha > and it appears that if you invoke the alpha command "saveas" with the > -f option the file is not actually written out to the disk (just the > file spec is changed). Is this really what happens? (if I were better > at Tcl/had more time, I would write a small script to test it myself, > looks like its two uses I found in the Tcl folder assume this > behavior) > Here is what I observe on my machine running (Alpha 6.52 and) Alpha 7.2.1b10 under System J1-7.5.5, with the "saveAs" command: (First, there is no "saveas" command anywhere! I only see a "saveAs" command. Is this what you mean, Aaron?) saveAs --> The SFPutFile dialog appears, with the name of the front window put into the filename-editing field. saveAs blahblah --> The SFPutFile dialog appears, with "blahblah" put into the filename-editing field. saveAs -f blahblah --> If there is no file named "blahblah" already existing in the current directory, then, nothing happens, except that the StatusWin displays a message saying: "Can't launch file." --> If there is already some file named "blahblah" in the current directory, then, running the above command simply renames the front window to "blahblah", and makes the window marked "dirty". (Nothing is actually written to disk at this time.) This behaviour is the same in Alpha 7.2.1b10 and Alpha 6.52. Mark -- Mark Nagata mailto:nagata@kurims.kyoto-u.ac.jp