Bug 429364 - Dolphin does not display dollar sign ($) in some file names
Summary: Dolphin does not display dollar sign ($) in some file names
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 19.12.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-19 20:12 UTC by Yann Salmon
Modified: 2020-12-19 04:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Salmon 2020-11-19 20:12:57 UTC
SUMMARY
I accidentally created a file with a dollar sign in it. Dolphin does not display that sign in the name. This could cause confusion, at least.

STEPS TO REPRODUCE
1. With bash, run touch 'file.na'$'me'
2. Open Dolphin and display the containing folder

OBSERVED RESULT
File is displayed as file.name


EXPECTED RESULT
File should be displayed as file.na$me

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
When the name ends with $, it gets displayed (eg. touch 'filename'$). But adding an empty string after makes it disappear (eg. touch 'filename'$'').
Comment 1 Nate Graham 2020-11-19 20:32:50 UTC
`touch 'file.na'$'me'` Actually results in a file without a dollar sign in it at all.

You would need to do `touch 'file.na'\$'me'`, and this produces a file with a dollar sign in it as expected. Essentially the dollar sign needs to be be escaped or else your shell interprets it it as the start of a variable.
Comment 2 Yann Salmon 2020-11-19 20:40:45 UTC
This makes sense !

However I do have a file that is listed as 'base2019.sqlite'$'\n' with ls and is displayed as base2019.sqlite by dolphin.

I do not remember how I created them, so I tried to do it again but failed.
Comment 3 Nate Graham 2020-11-19 21:50:06 UTC
I can't manage to get a file by that name to get created, which is an indication that it's pretty invalid. :)

Any chance you can figure out how to create it?
Comment 4 Bug Janitor Service 2020-12-04 04:34:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2020-12-19 04:35:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!