delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/07/06/11:26:06

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Fri, 6 Jul 2018 17:24:51 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] gschem - backup file names aren't differentiated in
the 'Open Recent' menu, very confusing!
In-Reply-To: <20180706144347.GA10675@esprimo>
Message-ID: <alpine.DEB.2.20.1807061713060.5580@nimbus>
References: <20180706144347 DOT GA10675 AT esprimo>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019