<devyn>
sudo -e <file> copies the file to a temporary file, changes ownership to the user, opens it in $EDITOR, and upon exit of the editor, if the tempfile changed, copies it back
<whitequark>
devyn: you mean visudo? :]
<whitequark>
oh, that's a different thing
<whitequark>
TIL, also thanks
<devyn>
no, visudo only edits /etc/sudoers
eligrey has quit [Quit: Leaving]
<devyn>
and has special syntax checking and stuff
<devyn>
:p
<devyn>
sudo -e can edit any file as another user
<devyn>
so it's pretty useful
Determinist has joined #elliottcable
<devyn>
btw, the other day, I saw someone do `sudo su user -c ...`
<devyn>
lol
<purr>
lol
<whitequark>
lol
<devyn>
Y U NO sudo -u
<devyn>
sudo is a pretty complex program
<devyn>
with some pretty nice functions
<prophile>
devyn: I use sudo su user quite a bit, generally with debian vagrant VMs, because the default user has permission to sudo commands but not to sudo to other users
<devyn>
huh. why would anyone set sudo up that way?
<prophile>
beats me
<devyn>
I mean if you have superuser access, obviously you have access to other users
<prophile>
by accident, i'd assume
<devyn>
yeah
<devyn>
prophile: but this person had no excuse; they were running arch
<devyn>
ignorance :p
<prophile>
well, arch is like gentoo, if you don't understand every single program on that machine in intimate detail you're doing it wrong
<devyn>
exactly!
<devyn>
:)
<devyn>
(but seriously, people have to set up sudo themselves, and the default /etc/sudoers has examples in it, the foremost and most recommended being %wheel ALL=(ALL) ALL
<devyn>
)
<devyn>
which just means in group wheel, any command as any user
<devyn>
that's one of the things I like about Arch... it rarely actually sets anything up for you ready to go out of the box unless it's very simple,
<devyn>
but it always gives you lots of examples in the default config files
<joelteon>
dude
<joelteon>
the arch wiki is amaaaazing
<devyn>
that too. I use it for other distros just because it's such a good resource
<joelteon>
i just learned about sudo -e
<joelteon>
just now
<joelteon>
i'll be using that
<devyn>
do. it solves the whole "root doesn't have my editor config" issue
<joelteon>
it's like sudo.vim, but better
<joelteon>
yeah arch wiki is just a guide to $program
<joelteon>
very detailed
<devyn>
it's not always that much... but it's generally at least enough to get up and running
<devyn>
like seriously how do you get that many layers of color on a bird
<joelteon>
i dunno
<joelteon>
i wasn't in charge
<devyn>
lol
<purr>
lol
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 260 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
<cuttle>
ELLIOTTCABLE: In Rust, there is nothing special about creating tasks: a task is not a concept that appears in the language semantics. Instead, Rust's type system provides all the tools necessary to implement safe concurrency: particularly, owned types. The language leaves the implementation details to the standard library.
<prophile>
owned types?
<prophile>
"Objects allocated in the exchange heap have ownership semantics, meaning that there is only a single variable that refers to them. For this reason, they are referred to as owned boxes."
<prophile>
that looks a lot like linear types
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
<cuttle>
prophile: right, in the tutorial it says "sometimes these are called affine or linear types"
<cuttle>
prophile: so yeah exactly
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
Nuck has quit [Ping timeout: 264 seconds]
PLejeck has joined #elliottcable
PLejeck is now known as Nuck
Nuck has quit [Changing host]
Nuck has joined #elliottcable
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
<cuttle>
<3 rust
<purr>
Let it be known that cuttle hearts rust.
<cuttle>
HEY EVERYONE GUESS WHAT
<cuttle>
RUST IS FUCKING GREAT
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
fwg has joined #elliottcable
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
cloudhead has joined #elliottcable
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
yorick has joined #elliottcable
Determinist has quit [Ping timeout: 251 seconds]
Determinist has joined #elliottcable
sharkbot has quit [Remote host closed the connection]
sharkbot has joined #elliottcable
<ELLIOTTCABLE>
cuttle: … this is news?
<joelteon>
cuttle: man rust is just the best
<jesusabdullah>
dangit ELLIOTTCABLE you are not micah stop this rite naow
Determinist has quit [Ping timeout: 246 seconds]
Determinist has joined #elliottcable
<ELLIOTTCABLE>
jesusabdullah: ;)
<ELLIOTTCABLE>
jesusabdullah: say what, Alex?
<joelteon>
daingert madelyn
<jesusabdullah>
stahp
<jesusabdullah>
madelyn huh?
<joelteon>
it's from a captchart
alexgordon has joined #elliottcable
eligrey has joined #elliottcable
eligrey has quit [Quit: Leaving]
alexgordon has quit [Quit: Computer has gone to sleep.]
Determinist has quit [Ping timeout: 252 seconds]
Determinist has joined #elliottcable
<cuttle>
ELLIOTTCABLE: well the news is that I'm actually using it instead of saying it's cool from a distance
<devyn>
idk, I tried to use it once and was put off by the ugly syntax
<cuttle>
ok actually
<cuttle>
trying to write a lexer with string iterators is being really frustrating
<cuttle>
devyn: the syntax is not even ugly
<devyn>
I mostly don't like how the sigils have to do with how the memory is managed
<cuttle>
it's imperfect but several hundred times better than c's system
<cuttle>
and I'd *much* rather it be sigils than keywords
<devyn>
you think so? with keywords you wouldn't have to repeat them, presumably; they'd just be included at declaration