#run at your own risk

1 messages · Page 1 of 1 (latest)

heady acorn
#

It's never more complicated on Linux :))

jagged stirrup
#
$ g++ -o game ./game.cpp
$ ./game
mystic kayak
heady acorn
mystic kayak
#

literally most of win32 and windows forms, in their maybe more limited functionality, are much simpler to use for their specific purpose

crystal pilot
#

incredible

#

what system do you think that C++ was developed on

mystic kayak
#

how tf do you tell

crystal pilot
#

unix moment

mystic kayak
#

i could name my exe game.c

crystal pilot
#

yeah

mystic kayak
#

and you would never know

crystal pilot
#

ofc you would kn

#

cause you can check the permissions

mystic kayak
#

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

crystal pilot
#

explain

mystic kayak
#

YOU NEVER KNOW IF IT'S A BINARY

crystal pilot
#

yeah I do

mystic kayak
#

like ```python
#!bin/python/

or something, i forgot hashbang kind of

hack_system_and_rm_rf()

crystal pilot
#

i dunno how this is *nix specific

mystic kayak
#

i'm talking ab differentiating between a binary blob and a file with code in it

crystal pilot
#

why

#

if it can be executed it can be executed

crystal pilot
mystic kayak
#

literally can't tell without reading file

mystic kayak
#

????

crystal pilot
mystic kayak
#

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

crystal pilot
crystal pilot
#

ls -la shows it too

#

see the permissions thingy

mystic kayak
#

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

crystal pilot
#

dolphin definitley has icons

mystic kayak
#

not doing weird arguments

crystal pilot
#

0 clue what ur on abt

crystal pilot
mystic kayak
#

-la?? why would i want to remember that

crystal pilot
#

oh thats just to format it

#

you just need -l

mystic kayak
#

i would like to just know based on the name of the file ngl

crystal pilot
#
-rwxr-xr-x   1 frityet  staff         91  8 Apr 14:23 test.lua
crystal pilot
#

on the command line

#

in your file browser

#

literally everywhere

mystic kayak
#

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

crystal pilot
mystic kayak
#

in the utilities i actually use

#

it's not there

#

i have to go out of my way to find out

crystal pilot
mystic kayak
#

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

crystal pilot
#

this is one of the non-issues of all time

mystic kayak
#

it's annoying

#

not too much of an issue, just annoying to dealwith

crystal pilot
#

ive never seen anyone have this annoyance

mystic kayak
#

bc you all were born with linux

crystal pilot
#

which is a unix

#

but even with people who have switched to linux

mystic kayak
#

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

crystal pilot
#

they jsut read the headers

#

its cached anyways

crystal pilot
crystal pilot
#

idk abt the other ones ur on abt

mystic kayak
#

idk, like .name files maybe

mystic kayak
crystal pilot
mystic kayak
#

elf?

#

the default executable format?

crystal pilot
#

what if its not an elf though

mystic kayak
#

then you can use .py or whatever language it needs

crystal pilot
#

what if its a mach-o binary

mystic kayak
#

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

crystal pilot
crystal pilot
mystic kayak
#

yeah idk what it is so

crystal pilot
#

also what if its a COFF binary

mystic kayak
#

i know elf and mbf

#

can you explain waht ur talking about a bit more

crystal pilot
#

point is that by just making each executable .exe there will still be errors

mystic kayak
#

but they can just have different file endings?

crystal pilot
mystic kayak
#

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

thin summit
# crystal pilot

yo that's a cool terminal font it looks like the minecraft font lmao

crystal pilot
#

yeah it is the minecraft font

thin summit
#

heh nice

mystic kayak
#

why not just enchantment table lang

#

:>

thin summit
#

beautiful

mystic kayak
#

linux needs to be better ez

fathom osprey
#

ye can just vi ./binary and if there's ELF in the begining then it's an elf binary

hazy grotto
#

When I switched from Windows to Linux I had no problem with executable file formats lol

jagged stirrup
lean timber
#

Doesn't windows hide file extensions in file exploror by default?

hazy grotto
stable dune
stable dune
mystic kayak
mystic kayak
lethal wyvern
#

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 😈

stable dune
lethal wyvern
#

Sometimes I see it with shim scripts and I chuckle

#

On Windows that is

#

Actually it's usually .cmd nevermind

mystic kayak
#

on top of not being able to spot them sometimes in dolphin

heady acorn
heady acorn
#

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

heady acorn
#

Ahh, somebody mentioned that before, sorry

plush gate
#

Like a list of files with typings on another column

heady acorn