It is currently Thu Jul 02, 2026 8:45 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Why name the file * ?
PostPosted: Wed Jul 30, 2025 2:47 am  (#1) 
Offline
GimpChat Member

Joined: Jul 26, 2025
Posts: 9
GIMP Version: 2.8.14
Operating System: Linux
OS Version: Debian 12 + Lxde (desktop)
GIMP Experience: New User



cd /home/debian/.local/share/gegl-0.4/plug-ins
ls
'*' gegleffects.so outlinedeluxe.so

file "*"
*: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=609bb39c6012e3b6d828b5a3c24296026e7772a0, not stripped

Why name the file "*" ?Wildcards are special characters that can be used to represent one or more characters in a filename. The most common wildcards in Linux are: * : Matches any number of characters (including zero characters).Does the file "*" harm my PC?


Attachments:
mysterias.png
mysterias.png [ 13.03 KiB | Viewed 3070 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Why name the file * ?
PostPosted: Wed Jul 30, 2025 9:03 am  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14109
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
imager wrote:
GIMP Version: 2.8.14
Operating System: Linux
OS Version: Debian 12 + Lxde (desktop)
GIMP Experience: New User



cd /home/debian/.local/share/gegl-0.4/plug-ins
ls
'*' gegleffects.so outlinedeluxe.so

file "*"
*: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=609bb39c6012e3b6d828b5a3c24296026e7772a0, not stripped

Why name the file "*" ?Wildcards are special characters that can be used to represent one or more characters in a filename. The most common wildcards in Linux are: * : Matches any number of characters (including zero characters).Does the file "*" harm my PC?


Windows will not allow you to use some characters as file names.
The * (asterisk) is one of these characters.
Using these characters in a file name could confuse the system,
and prevent it from properly parsing the file path or performing intended operations.
Seems that Linux does allow these characters.
Not sure about how this works within Linux.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Why name the file * ?
PostPosted: Wed Jul 30, 2025 3:28 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
imager wrote:
GIMP Version: 2.8.14
Operating System: Linux
OS Version: Debian 12 + Lxde (desktop)
GIMP Experience: New User



cd /home/debian/.local/share/gegl-0.4/plug-ins
ls
'*' gegleffects.so outlinedeluxe.so

file "*"
*: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=609bb39c6012e3b6d828b5a3c24296026e7772a0, not stripped

Why name the file "*" ?Wildcards are special characters that can be used to represent one or more characters in a filename. The most common wildcards in Linux are: * : Matches any number of characters (including zero characters).Does the file "*" harm my PC?


On Linux the only forbidden characters in filenames are "/" and the NULL.

This is probably a user error somewhere. When you specify a pattern as a parameter in a shell command, and the pattern doesn't match anything, the pattern is passed as is to the command(*), which uses it as a file name. Which is why "ls *foobar*" elicits "ls: cannot access '*foobar*': No such file or directory". If you do "cp somefile somedir/*", and there is no file in "somedir" yet, cp gets "somedir/*" as a second arg, uses it directly (file pattern expansion is only done by the shell) and you end up with a file "*" in "somedir".

(*) unless you have set the "nullglob" option in which case the argument is removed.

You can very likely erase the file without ill effects, just quote the name to avoid the file pattern substitution (or erase from your file explorer)

_________________
Image


Top
 Post subject: Re: Why name the file * ?
PostPosted: Wed Jul 30, 2025 8:09 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2012
There is no `*` name shipped with my plugins. Never was and never has been.

Where did you get that * named file?


Top
 Post subject: Re: Why name the file * ?
PostPosted: Wed Jul 30, 2025 8:15 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2012
You made a mistake moving my plugins in the CLI and accidentally typed something that made a `*` file


I have never shipped that. I know there is a command like `mv *.so receiving_folder` so perhaps a mistake of that did it.


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group