~ after script filename?
Aldo Cortesi
aldo at nullcube.com
Wed Sep 7 00:08:57 EDT 2005
Thus spake presentt (presentt at gmail.com):
> Hello all,
>
> I just wrote a really simple script and named it
> helloworld.py. Inside was only:
>
> #!/usr/bin/env print "Hello, world"
>
> I used chmod to set the permissions, and ran it to see
> what happened (I just started learning Python, if you
> couldn't guess)
>
> Then, I typed ls in the directory to see what was there,
> and I noticed a new file, namely helloworld.py~ . What is
> that file (its contents are identicle to helloworld.py)?
> Why the ~?
>
> Thanks a lot. I'm using Ubuntu Linux 5.04 (Hoary), and
> wrote the script with gedit.
It doesn't have anything to do with Python. I'm pretty sure
you'll find that the file is created by your editor as a
backup or a running store of some kind. Try just editing a
random non-python file with the same editor, and see if you
find the same thing...
Cheers,
Aldo
--
Aldo Cortesi
aldo at nullcube.com
http://www.nullcube.com
Off: (02) 9283 1131
Mob: 0419 492 863
More information about the Python-list
mailing list