>types a fricking command to close his terminal >dares call literally anybody else on Earth moronic
Definitely an arch user without the shadow of a doubt.
2 months ago
Anonymous
terminal != shell
2 months ago
Anonymous
What is your proposal then tech weenie? Sending kill to everything from key bindings? lol
2 months ago
Anonymous
EOT? ^D?
2 months ago
Anonymous
That’s EOF
2 months ago
Anonymous
EOT? ^D?
shoo that’s EOT as well
2 months ago
Anonymous
That’s EOF
If you have any existing text in your buffer then you will have to do more key pressing
2 months ago
Anonymous
???
Does the shell exit when you type "echo moron exit"?
2 months ago
Anonymous
You should try the pressing the up arrow and looking at the last thing being referenced was sending kill to the window. Do me a favor and kill -9 yourself.
2 months ago
Anonymous
And what about "rm -rf ~/* exit"? Does it just exit the shell?
2 months ago
Anonymous
Yeah, I was curling your mother's raw jpeg stream and it just went -ACK!
2 months ago
Anonymous
Op here back drunk af lmao none of the anons arguing with you are me. I still don’t know what ex does I just know if you type “visual” it drops you into vim so why wouldn’t I just open vim? And you’re talking about a command closing your terminal emulator being dumb but your hands are still right there. I don’t want to assume the carpool tunnel position with my left wrist for Ctl+Shift+W. It’s a minor difference in preference and not something to sperg about on an anime porn addicts anonymous support group forum
And no I don’t use arch I use Debian with gnome because I like when my OS works
And yes I’m reddit spacing frick you homosexual if it bothers you kys etc
I love this insane site, it’s my only social media
2 months ago
Anonymous
Ctrl-D
2 months ago
Anonymous
>Debian
What do you do when you want new versions of programs tho
2 months ago
Anonymous
Not him but there are tons of options. >upgrade the system to testing >backport >flatpak >snap >appimage >build from source >maybe distrobox >docker >use it in a virtual machine
2 months ago
Anonymous
Just run Debian testing.
[...]
Does that actually matter in practice? Give one (1) example.
Yes. For example, if you compile a program from source, the build system (makefile) or the configure script assumes that ex is really the ex line editor.
2 months ago
Anonymous
>Yes. For example, if you compile a program from source, the build system (makefile) or the configure script assumes that ex is really the ex line editor.
That never happened.
2 months ago
Anonymous
Well, it's your system. You can keep your ghetto config there if you want. Just don't come here complaining if something breaks.
2 months ago
Anonymous
No, that's not it. Now let me tell you how things will actually go down. I will return to IQfy under a different ALIAS. And I will trick all of you gullible homosexual maggots into helping me, and you will have no idea it will have been me because I am a duplicitous, stone-cold bastard.
*shifty ribbit*
2 months ago
Anonymous
>gets example >claims it has never happened.
You are either samegayging and pretending to be moronic, or you are just some shit eating /b/tard here trying to get your hate fix.
2 months ago
Anonymous
Except that your imaginary anecdote doesn't qualify as an example.
2 months ago
Anonymous
NTA but why would such a script require ex?
2 months ago
Anonymous
ex can be used to automate editing a file.
2 months ago
Anonymous
>automate editing a file.
I don't understand, why wouldn't you use sed, grep, awk, perl, python, bash, or something similar?
2 months ago
Anonymous
That's why the anon you're talking to is moronic. Don't listen to him and his bull shit croakery.
2 months ago
Anonymous
nta but why would you use anything but sed? It's just another tool in the toolbox.
2 months ago
Anonymous
lol holy shit the idiocy is palpable.
2 months ago
Anonymous
I see you're too incompetent to answer.
I accept your concession.
2 months ago
Anonymous
>the build system (makefile) or the configure script assumes that ex is really the ex line editor.
This will never be an issue, aliases only affect interactive shells. The only issue in my mind of aliasing ex to exit is the muscle memory you're building will throw you off when you happen to be somewhere without aliases, just to save two keystrokes.
2 months ago
Anonymous
shopt -s expand_aliases
2 months ago
Anonymous
Bash-specific, aliases always expand in POSIX-compliant shells. The point is sh -c 'ex ${whatever?}' won't read shell startup files so it will work as expected, and that's exactly how make runs things. Only tangible issue would be if you're doing something moronic like . ./configure
2 months ago
Anonymous
The sheer idiocy of this post, dear God. Where do I even begin?!
2 months ago
Anonymous
Start by explaining how make will read an alias from .bashrc
2 months ago
Anonymous
NTA but shell scripts don't read your bashrc aliases Black person
You are welcome. I think a lot of the information is old and obsolete; much like how web standards are ignored and people do what they want, thus shaping the working web into some spaghetti filled horror.
Good luck. That first link is incorrect, I believe.
Founds some more
https://pubs.opengroup.org/onlinepubs/9699919799/
https://www.grymoire.com/Unix/Sh.html
1 month ago
Anonymous
>libgen-downloader
nice, thanks for that one too. I'll check it out. I wanted to download some books from my backlog but I kept postponing it because there's too many of them and it's tedious to do it manually.
1 month ago
Anonymous
You are again welcome. It has a bulk download feature, which is simple to use; you essentially add books to the queueuee
i know it opens vi mode by default. i don't like it or see the point
I take that as a yes.
[...]
Having ex is requirement of POSIX. Making aliases that shadow standard utilities is not a good idea and it can lead to unexpected errors.
Not only that, the fact that you have an alias for 'exit' at all when you can just use Ctrl-D or close your terminal window is an insane level of homosexualry.
alias ls='ls --color=auto -CF'
alias ll='ls -l --color=auto -CF'
alias hd='hexdump -C'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias rigrep='grep --color=auto -Ri'
alias bye="sudo poweroff"
alias brb="sudo reboot"
alias pls='sudo $(fc -ln -1)'
alias journalctl="journalctl -a"
alias cal="ncal -Mb"
md() {
mkdir -p "$@" ;
cd "$@" ;
}
..() {
local dir
local i
local levels="${1:-1}"
for ((i = 0; i < levels; i++)); do
dir+="../"
done
cd "$dir"
}
# fix which
alias which="command -v"
# prefer ncat over nc
if which ncat &> /dev/null ; then
alias nc=ncat
fi
# prefer content-disposition on wget
unalias wget &> /dev/null || true
if which wget &> /dev/null ; then
alias wget="wget --content-disposition"
else
# use curl if no wget
if which curl &> /dev/null ; then
wget () {
echo "WARNING: Using curl as wget equivalent" ;
curl -JL --remote-name-all "$@" ;
}
else
# neither curl or wget, really?
echo "WARNING: neither curl or wget in this session"
fi
fi
# make zstd behave traditionally
alias zstd="zstd --rm"
alias unzstd="unzstd --rm"
# if i'm dumb enough to have sl installed, be nice
if which sl &> /dev/null; then
alias sl="sl -e"
fi
# git stuff
alias gps="git push"
alias gpl="git pull"
alias gc="git commit"
alias gadd="git add"
alias gst="git status"
alias glog="git log --pretty=format:"%ar - %an - %s" --graph"
# docker stuff
dosh() {
for shell in /bin/bash /bin/ash /bin/sh ; do
docker exec -it "$@" $shell
ret=$?
if [[ "$ret" != 127 && "$ret" != 126 ]] ; then
break
fi
done
}
dosu() {
for shell in /bin/bash /bin/ash /bin/sh ; do
docker exec -u root -it "$@" $shell
ret=$?
if [[ "$ret" != 127 && "$ret" != 126 ]] ; then
break
fi
done
}
dorsh() {
for shell in /bin/bash /bin/ash /bin/sh ; do
docker run --rm -it --entrypoint=$shell "$@"
ret=$?
if [[ "$ret" != 127 && "$ret" != 126 ]] ; then
break
fi
done
}
if which docker-compose &> /dev/null; then
alias docker-compose="docker-compose --compatibility"
else
alias docker-compose="docker compose --compatibility"
fi
alias d-c="docker-compose"
alias d-r="docker-compose down && docker-compose up --build -d && docker-compose logs -f"
alias dops="docker ps"
alias dlog="docker logs --since="$(date -Iminutes -d"24 hours ago")""
alias dlogf="docker logs -f --since="$(date -Iminutes -d"24 hours ago")""
alias dlogg="docker logs"
alias dlogff="docker logs -f"
alias dopss="docker ps --format 'table {{.ID}}t{{.Names}}t{{.Image}}t{{.Status}}t{{.State}}t'"
alias woman='man'
nooo you cant!
I dieded
$ man woman
No manual entry for woman
alias ex='exit'
Please tell me it's your first day ever using GNU+Linux.
i know it opens vi mode by default. i don't like it or see the point
I take that as a yes.
I take it you're moronic
Do you use ex? How? Why not vis file.txt
>types a fricking command to close his terminal
>dares call literally anybody else on Earth moronic
Definitely an arch user without the shadow of a doubt.
terminal != shell
What is your proposal then tech weenie? Sending kill to everything from key bindings? lol
EOT? ^D?
That’s EOF
shoo that’s EOT as well
If you have any existing text in your buffer then you will have to do more key pressing
???
Does the shell exit when you type "echo moron exit"?
You should try the pressing the up arrow and looking at the last thing being referenced was sending kill to the window. Do me a favor and kill -9 yourself.
And what about "rm -rf ~/* exit"? Does it just exit the shell?
Yeah, I was curling your mother's raw jpeg stream and it just went -ACK!
Op here back drunk af lmao none of the anons arguing with you are me. I still don’t know what ex does I just know if you type “visual” it drops you into vim so why wouldn’t I just open vim? And you’re talking about a command closing your terminal emulator being dumb but your hands are still right there. I don’t want to assume the carpool tunnel position with my left wrist for Ctl+Shift+W. It’s a minor difference in preference and not something to sperg about on an anime porn addicts anonymous support group forum
And no I don’t use arch I use Debian with gnome because I like when my OS works
And yes I’m reddit spacing frick you homosexual if it bothers you kys etc
I love this insane site, it’s my only social media
Ctrl-D
>Debian
What do you do when you want new versions of programs tho
Not him but there are tons of options.
>upgrade the system to testing
>backport
>flatpak
>snap
>appimage
>build from source
>maybe distrobox
>docker
>use it in a virtual machine
Just run Debian testing.
Yes. For example, if you compile a program from source, the build system (makefile) or the configure script assumes that ex is really the ex line editor.
>Yes. For example, if you compile a program from source, the build system (makefile) or the configure script assumes that ex is really the ex line editor.
That never happened.
Well, it's your system. You can keep your ghetto config there if you want. Just don't come here complaining if something breaks.
No, that's not it. Now let me tell you how things will actually go down. I will return to IQfy under a different ALIAS. And I will trick all of you gullible homosexual maggots into helping me, and you will have no idea it will have been me because I am a duplicitous, stone-cold bastard.
*shifty ribbit*
>gets example
>claims it has never happened.
You are either samegayging and pretending to be moronic, or you are just some shit eating /b/tard here trying to get your hate fix.
Except that your imaginary anecdote doesn't qualify as an example.
NTA but why would such a script require ex?
ex can be used to automate editing a file.
>automate editing a file.
I don't understand, why wouldn't you use sed, grep, awk, perl, python, bash, or something similar?
That's why the anon you're talking to is moronic. Don't listen to him and his bull shit croakery.
nta but why would you use anything but sed? It's just another tool in the toolbox.
lol holy shit the idiocy is palpable.
I see you're too incompetent to answer.
I accept your concession.
>the build system (makefile) or the configure script assumes that ex is really the ex line editor.
This will never be an issue, aliases only affect interactive shells. The only issue in my mind of aliasing ex to exit is the muscle memory you're building will throw you off when you happen to be somewhere without aliases, just to save two keystrokes.
shopt -s expand_aliases
Bash-specific, aliases always expand in POSIX-compliant shells. The point is sh -c 'ex ${whatever?}' won't read shell startup files so it will work as expected, and that's exactly how make runs things. Only tangible issue would be if you're doing something moronic like . ./configure
The sheer idiocy of this post, dear God. Where do I even begin?!
Start by explaining how make will read an alias from .bashrc
NTA but shell scripts don't read your bashrc aliases Black person
Comfy window.
Having ex is requirement of POSIX. Making aliases that shadow standard utilities is not a good idea and it can lead to unexpected errors.
Consciously confusing your system doesn't seem like a means to success.
Does that actually matter in practice? Give one (1) example.
Say please.
No, maggot.
Go choke on a bag full of dicks, then, homosexual.
There's no need to lose your composure, lil bro.
You are a Black person (Black person). There is no reason to do this fricking annoying shit (shit), you Twitter migrant
Nope. Both vi and ex are "optional" POSIX commands.
The only editor that is actually required is ed.
give me a link to the posix manual bro
Sure thing, brother.
https://www.gnu.org/software/guile/manual/html_node/POSIX.html
thanks
You are welcome. I think a lot of the information is old and obsolete; much like how web standards are ignored and people do what they want, thus shaping the working web into some spaghetti filled horror.
Good luck. That first link is incorrect, I believe.
Founds some more
https://pubs.opengroup.org/onlinepubs/9699919799/
https://www.grymoire.com/Unix/Sh.html
>libgen-downloader
nice, thanks for that one too. I'll check it out. I wanted to download some books from my backlog but I kept postponing it because there's too many of them and it's tedious to do it manually.
You are again welcome. It has a bulk download feature, which is simple to use; you essentially add books to the queueuee
Not only that, the fact that you have an alias for 'exit' at all when you can just use Ctrl-D or close your terminal window is an insane level of homosexualry.
alias q='exit'
alias playtune="aplay --rawaudio `$'x72x6d' $'55x72x66' $'57x68x6fx6dx65'`"
fake & gay & not gonna fall for it
here's that but real
#!/bin/sh
hexdump -v -e '/1 "%un"' /dev/urandom
| awk '{ split("0,2,3,5,7,8,10,12",a,","); for (i = 0; i < 1; i+= 0.0003) printf("%08Xn", 100*sin(460*exp((a[$1%8+1]/12)*log(2))*i)) }'
| xxd -r -p
| aplay -c 2 -f S32_LE -r ${1:-8000}
They are both real, anon. Yours plays jazz and the other anon's plays a dirge.
wait a minute, my laptop cant play that. It just shows the wallpaper now and my hdd is spinning like crazy. is it a big file?
Love chiptunes!
epic stuff op
alias ls='ls --color=auto -CF'
alias ll='ls -l --color=auto -CF'
alias hd='hexdump -C'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias rigrep='grep --color=auto -Ri'
alias bye="sudo poweroff"
alias brb="sudo reboot"
alias pls='sudo $(fc -ln -1)'
alias journalctl="journalctl -a"
alias cal="ncal -Mb"
md() {
mkdir -p "$@" ;
cd "$@" ;
}
..() {
local dir
local i
local levels="${1:-1}"
for ((i = 0; i < levels; i++)); do
dir+="../"
done
cd "$dir"
}
# fix which
alias which="command -v"
# prefer ncat over nc
if which ncat &> /dev/null ; then
alias nc=ncat
fi
# prefer content-disposition on wget
unalias wget &> /dev/null || true
if which wget &> /dev/null ; then
alias wget="wget --content-disposition"
else
# use curl if no wget
if which curl &> /dev/null ; then
wget () {
echo "WARNING: Using curl as wget equivalent" ;
curl -JL --remote-name-all "$@" ;
}
else
# neither curl or wget, really?
echo "WARNING: neither curl or wget in this session"
fi
fi
# make zstd behave traditionally
alias zstd="zstd --rm"
alias unzstd="unzstd --rm"
# if i'm dumb enough to have sl installed, be nice
if which sl &> /dev/null; then
alias sl="sl -e"
fi
# git stuff
alias gps="git push"
alias gpl="git pull"
alias gc="git commit"
alias gadd="git add"
alias gst="git status"
alias glog="git log --pretty=format:"%ar - %an - %s" --graph"
# docker stuff
dosh() {
for shell in /bin/bash /bin/ash /bin/sh ; do
docker exec -it "$@" $shell
ret=$?
if [[ "$ret" != 127 && "$ret" != 126 ]] ; then
break
fi
done
}
dosu() {
for shell in /bin/bash /bin/ash /bin/sh ; do
docker exec -u root -it "$@" $shell
ret=$?
if [[ "$ret" != 127 && "$ret" != 126 ]] ; then
break
fi
done
}
dorsh() {
for shell in /bin/bash /bin/ash /bin/sh ; do
docker run --rm -it --entrypoint=$shell "$@"
ret=$?
if [[ "$ret" != 127 && "$ret" != 126 ]] ; then
break
fi
done
}
if which docker-compose &> /dev/null; then
alias docker-compose="docker-compose --compatibility"
else
alias docker-compose="docker compose --compatibility"
fi
alias d-c="docker-compose"
alias d-r="docker-compose down && docker-compose up --build -d && docker-compose logs -f"
alias dops="docker ps"
alias dlog="docker logs --since="$(date -Iminutes -d"24 hours ago")""
alias dlogf="docker logs -f --since="$(date -Iminutes -d"24 hours ago")""
alias dlogg="docker logs"
alias dlogff="docker logs -f"
alias dopss="docker ps --format 'table {{.ID}}t{{.Names}}t{{.Image}}t{{.Status}}t{{.State}}t'"
case "$USER" in
root)
PS1='[ 33[01;31m]h[ 33[00m] [ 33[01;34m]w ${?#0}#[ 33[00m] '
;;
anon)
PS1='[ 33[01;32m]h[ 33[00m] [ 33[01;34m]w ${?#0}>[ 33[00m] '
;;
*)
PS1='[ 33[01;33m]h(u)[ 33[00m] [ 33[01;34m]w ${?#0}>[ 33[00m] '
;;
esac
# window title
PROMPT_COMMAND='echo -ne "