#run at your own risk
1 messages · Page 1 of 1 (latest)
$ g++ -o game ./game.cpp
$ ./game
wrong
not
literally most of win32 and windows forms, in their maybe more limited functionality, are much simpler to use for their specific purpose
ngl linux cursed for that, executables should have an ending
how tf do you tell
unix moment
i could name my exe game.c
yeah
and you would never know
actually i can name my text file game and then have an executable right beside it in another folder named game too
but what if you just set permissions to execute the text file
with like a hashbang at the top so it actually does
explain
YOU NEVER KNOW IF IT'S A BINARY
yeah I do
like ```python
#!bin/python/
or something, i forgot hashbang kind of
hack_system_and_rm_rf()
any executable could have that lol
i dunno how this is *nix specific
i'm talking ab differentiating between a binary blob and a file with code in it
2 files in the same dir cant have the same name
yeah but it's annoying af not being able to tell whether it's a file you can edit or not
literally can't tell without reading file
file
????
bruh
you want me to execute a command for every file that doesn't have an extension
ur trippin, it should literally just be in the name like a normal file
usually your file manager shows it
ls -la shows it too
see the permissions thingy
i'm talking ab dolphin
even dolphin doesn't show it the last time i used it
also i like just doing ls
and being able to tell
from the file name
dolphin definitley has icons
not doing weird arguments
0 clue what ur on abt
weird arguments?
-la?? why would i want to remember that
i would like to just know based on the name of the file ngl
-rwxr-xr-x 1 frityet staff 91 8 Apr 14:23 test.lua
but it literally shows you what it is
on the command line
in your file browser
literally everywhere
not really on the command line
in vim, in ls, in other places
it's just file name
dolphin, idk it didn't show icons for me at all
when i installed it
just file names
wdym
in the utilities i actually use
it's not there
i have to go out of my way to find out
even then, it tells you what type of file it is on hover o
yeah im not hovering on every file
i literally started adding .bin to every executable i ever make in makefiles on linux
bc it's literally so stupid
this is one of the non-issues of all time
ive never seen anyone have this annoyance
bc you all were born with linux
MacOS actually
which is a unix
but even with people who have switched to linux
i mean yeah it is a personal annoyance, but i don't get why adding an executable file ending isn't just common
i'm pretty sure the tools you referenced have to read from the file to check if it's an elf
which is enough reason to just add a specific file extension to it, so there's less ambiguity
like Makefile and a lot of other text formats in linux don't really have a file extension also, so again there's a ton of ambiguity and you have to go out of the way and explicitly read the file or check perms(?) to get an idea of what it is
nope
they jsut read the headers
its cached anyways
there are different executable formats
Makefile is execusable because it can only be called Makefile imo
idk abt the other ones ur on abt
idk, like .name files maybe
yeah still more effort than just seeing filename = exe
well what executable format would the .exe be?
what if its not an elf though
then you can use .py or whatever language it needs
what if its a mach-o binary
like in windows it still calls the program specific to the file to execute it
idk wtf that is
but sure have an extension specific to it?
and linux can call the program that executes it or make it execute by itself
nope
its the MacOS executable format
yeah idk what it is so
also what if its a COFF binary
point is that by just making each executable .exe there will still be errors
but they can just have different file endings?
so a .elf .coff .macho?
i'm not saying it has to be .exe it can be .elf or .coff or whatever it wants, just pls have an ending
yeah
sure
ngl i miss that part ab windows, where you can actually tell file contents somewhat
yo that's a cool terminal font it looks like the minecraft font lmao
yeah it is the minecraft font
heh nice
beautiful
linux needs to be better ez
ye can just vi ./binary and if there's ELF in the begining then it's an elf binary
When I switched from Windows to Linux I had no problem with executable file formats lol
linkin_park_playlist.mp3.exe
Doesn't windows hide file extensions in file exploror by default?
Yeah but it's pretty easy to reveal them
🤡
file extensions are nothing but human aid
they don't mean anything to the computer
file game.c
and u would get back the mimetype of that file
bros rly a clown for not reading anything
you -> 🤡🤡🤡
Only time I've actually cared about the lack of a suffix was trying to gitignore executable files, that did bug me a lot and I had to use a hack (glob ignore and unignore what I actually wanted)
Otherwise I genuinely don't give a fuq
Sometimes I'll do a little trolling and suffix with .com though 😈
throwback to the DOS days
Sometimes I see it with shim scripts and I chuckle
On Windows that is
Actually it's usually .cmd nevermind
same lol
on top of not being able to spot them sometimes in dolphin
just file game and it says what type of file it is
o nvm
you also reminded me of how newer win hides suffix by default so its the same anyways ☠️
and dont say it doesnt matter because file icon shows what type of file it is. because linux does that too but with mime types
You can file main.c and you will see ELF64
Ahh, somebody mentioned that before, sorry
Can you do that easily to entire folder?
Like a list of files with typings on another column
i think file * would do. * would expand to all filenames in the current directory