Bug 419286

Summary: please stop using tilde"~" on name.
Product: [Applications] krita Reporter: ferweer <gyrlgith>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: tamtamy.tymona
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ferweer 2020-03-27 09:23:16 UTC
SUMMARY
Hi. sorry strange english.
krita was using prefix tilde"~" on name to save incremental backup.
but tilde"~" is tilde expansion. on bash, on unix terminal command.

https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06
2.6.1 Tilde Expansion

what issue? can't catch this tilde on zmv or mv or cp or find command. 
and using tilde"~"000 is name. expansion after.
this difficultest change to terminal rename or cp or remove or search.

i suggest.
name.extension > name-000.extension
or
name 000.extension (using space)
any using except tilde"~" name. and name change.
what think this?

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-42-lowlatency
OS Type: 64-bit
git db1cc49
Comment 1 ferweer 2020-03-27 09:32:24 UTC
oh i mistake. sorry. krita rename on save incremental backup is tilde~000 on name before extension.
but tilde using is difficult using on terminal command.
so example
1.kra > 1~000.kra
suggest
1.kra > 1-000.kra
1.kra > 1 000.kra
1.kra > 1_000.kra
Comment 2 Tiar 2020-03-27 11:39:44 UTC
The tilde is a standard convention on Linux to mark the backup files, so it's most probably not going to change.

If you're using Save Incremental backup, maybe you should use Save Incremental Version instead. It saves 1.kra > 1_000.kra > 1_001.kra > 1_002.kra, just as you wanted. The only difference is that it changes the current filename of the file you're working on, so if you click plain "Save" afterwards, it will save to the 1_00x.kra file, not to 1.kra. But it's easy to get used to, it's actually a saving workflow I use and recommend.

I checked and I had no issues with backup file with 'cp' command. The link you gave clearly says that the tilde must be on the very beginning of the word to have any special meaning (and be expanded).
Comment 3 ferweer 2020-03-28 04:02:18 UTC
(In reply to Tymond from comment #2)
> If you're using Save Incremental backup, maybe you should use Save
> Incremental Version instead. It saves 1.kra > 1_000.kra > 1_001.kra >
> 1_002.kra, just as you wanted. The only difference is that it changes the
> current filename of the file you're working on, so if you click plain "Save"
> afterwards, it will save to the 1_00x.kra file, not to 1.kra. But it's easy
> to get used to, it's actually a saving workflow I use and recommend.

so i need changed method? umm. ok, i try. thanks you for suggest alternative method.
and, zmv can't glub tilde. /~ \~ doesn't work =(