Mail Archives: geda-user/2018/07/06/11:26:06
On Fri, 6 Jul 2018, Chris Green wrote:
> If I look in the 'File'->'Open Recent' menu in gschem I see:-
>
> 0. bbbpsu.sch
> 1. socket.sym
> 2. odinbbb.sch
> 3. odinbbb.sch
> 4. 12n.sch
> 5. odinbbb.sch
>
>
> This really isn't very useful! :-)
Are these entries actually referring to files in the directory you listed,
or do you have identically-named files in different directories? If you
hover the mouse over the menu item, you will get a tooltip showing the
full path.
Did you do anything unusual, such as opening the backup file directly in
the editor, or moving the file to another directory and opening it there?
> While I'm at it why are there both xxxxx.sch~ and #xxxxx.sch# files?
Files with a trailing tilde are backup files, while files with a leading
and trailing number sign are autosave files which are used to recover the
work-in-prgoress in case something went wrong.
> Plus, while I'm at it, # is a really rubbish character to use because
> it's the comment marker in most (Unix/Linux) shells.
This is the usual naming convention for autosave files on POSIX systems.
In the unusual case that you need to specify the name of an autosave file
to a shell, there are multiple ways to do so: the comment character is
only interpreted at the beginning of a word, so you can give the file name
as ./#foo.sch#, or you could just escape the character or the whole file
name according to your shell's escaping mechanism, like \#foo# or '#foo#'.
- Raw text -