LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 2 years agoMy wife was unimpressed by Vimprogramming.devimagemessage-square181fedilinkarrow-up1963arrow-down119
arrow-up1944arrow-down1imageMy wife was unimpressed by Vimprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 2 years agomessage-square181fedilink
minus-squarelil@lemy.lollinkfedilinkarrow-up2·2 years agoI guess shell languages can’t do this: export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up3arrow-down1·edit-22 years agoThat would be too smart. Smells like kotlin’s when
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·2 years agoPut 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.