LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 1年前My wife was unimpressed by Vimprogramming.devimagemessage-square177fedilinkarrow-up1962
arrow-up1962imageMy wife was unimpressed by Vimprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 1年前message-square177fedilink
minus-squarelil@lemy.lollinkfedilinkarrow-up2·1年前I guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up3·edit-21年前That would be too smart. Smells like kotlin’s when
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·1年前Put 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.