Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Bug in -save, replace- (Stata for Linux)?


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   st: Bug in -save, replace- (Stata for Linux)?
Date   Fri, 2 Jul 2004 13:54:37 +0200

hi all,

Nick Cox recently asks for not using the word "Bug" in the subject. While I 
generally agree, I like to apply for an exemption in this case. 

On Stata for Linux I am able to overwrite an existing data-file without  
-replace-. Here are the details.

Here I am:

+-------------------------------------------------+
| . pwd                                           |
| /home/kohler/pub/kkstata1e/kkstata              |
+-------------------------------------------------+

Let me save a datafile ...

+-------------------------------------------------+
| . save pequiv01                                 |
| file ~/pub/kkstata1e/kkstata/pequiv01.dta saved |
+-------------------------------------------------+

and again:

+-------------------------------------------------+
| . save pequiv01                                 |
| file pequiv01.dta already exists                |
| r(602);                                         |
+-------------------------------------------------+

This does not work (as it should). However

+--------------------------------------------------+
| . save ~/pub/kkstata1e/kkstata/pequiv01          |
| file ~/pub/kkstata1e/kkstata/pequiv01.dta saved  |
+--------------------------------------------------+

can be used to overwrite the datafile. At the same time

+----------------------------------------------------------------------+
| . save /home/kohler/pub/kkstata1e/kkstata/pequiv01                   |
| file /home/kohler/pub/kkstata1e/kkstata/pequiv01.dta already exists  |
| r(602);                                                              |
+----------------------------------------------------------------------+

works as expected. Another intersting point is, that

+----------------------------------------------------------------------+
| . save ~/pub/kkstata1e/kkstata/pequiv01, replace                     |
| (note: file ~/pub/kkstata1e/kkstata/pequiv01.dta not found)          |
| file ~/pub/kkstata1e/kkstata/pequiv01.dta saved                      |
+----------------------------------------------------------------------+

states, that the file " ~/pub/kkstata1e/kkstata/pequiv01.dta" does not exist, 
while it in fact does.


This was on Suse Linux 2.4.18-64GB-SMP with KDE 3.0.5 on a i686. Stata was 

. query born
1 July 2004

and all ados have been up to date. 

many regards
uli

-- 
[email protected]
+49 (030) 25491-361


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index