Bash Girlfriend Complains About POSIX
BASH gf THE BOURNE-AGAIN SHELL "you shouldn't use /bin/bash, it's not portable" >find 3 methods to get variables created in subshells into the main script >too embarrassed to show anyone >too embarrassed to use the code "/usr/bin/env bash" for beat in ${heart[@]}; do echo i love you &; done ilu=() "you could do this in a single bash line" "spends 4 hours writing 250 lines" "i figured out how to do it, but its NOT POSIX..." myLove=${myLove:+y} "oh i didnt know bash let you pass arrays by reference" echo "mv script.sh script.sh-bad mv script.sh-new script.sh chmod +x script.sh ./script.sh" "i use printf because its closer to C syntax" printf "$(cat long | grep -E '$(date +%F)\\T' | grep -E error | sed -E 's/.*F.*$//')" "grep -E 'C'" >complains non-stop about bash being bad >states she doesn't see a need to learn any other language *greps cat output out of convenience* grep -iE "error" < <(cat /var/log/syslog) | sort "can you come over to check my code for POSIX compatibility?" "thats not a bug... its mentioned in the documentation" "oh yeah i think i can go on a date with you... let me check my schedule [@applebook]$ cat schedule.txt [@applebook]$ cat schedule.txt"
An ASCII-style Bash girlfriend character is surrounded by dense shell commands and commentary. She insists on POSIX compatibility while using Bash-specific shortcuts, spending hours on overly elaborate one-liners, and relying on Bash conveniences. The joke is aimed at the affectionate frustration of shell programmers dealing with Bash quirks, portability debates, and unnecessarily complicated code. EN: An ASCII-style Bash girlfriend character is surrounded by dense shell commands and commentary. She insists on POSIX compatibility while using Bash-specific shortcuts, spending hours on overly elaborate one-liners, and relying on Bash conveniences. The joke is aimed at the affectionate frustration of shell programmers dealing with Bash quirks, portability debates, and unnecessarily complicated code.
- @gentoomemes / 371 2022-05-27
- @right_wing_dev_squads / 5801 2023-01-27
- Type
- image
- Size
- 800×526 · 60.6 KiB
- Mood
- ироничный, geek
- Language
- en
- Added