LinearArray@programming.dev to Programmer Humor@programming.devEnglish · il y a 2 ansMy wife was unimpressed by Vimprogramming.devimagemessage-square180linkfedilinkarrow-up1961arrow-down119
arrow-up1942arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · il y a 2 ansmessage-square180linkfedilink
minus-squarelil@lemy.loldeleted by creatorlinkfedilinkarrow-up2·il y a 2 ansI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up3arrow-down1·il y a 2 ansThat would be too smart. Smells like kotlin’s when
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·il y a 2 ansPut backticks around the entire case statement, and you can.
I guess shell languages can’t do this:
export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;That would be too smart. Smells like kotlin’s when
Put backticks around the entire case statement, and you can.