GrammarPolice@lemmy.world to memes@lemmy.world · 2 years agobumlemmy.worldimagemessage-square42linkfedilinkarrow-up1862arrow-down123
arrow-up1839arrow-down1imagebumlemmy.worldGrammarPolice@lemmy.world to memes@lemmy.world · 2 years agomessage-square42linkfedilink
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up34arrow-down2·edit-22 years agoAs a unix shell script: (cat ‘cat’) in (cat ‘cat’ ‘cat’) Which should evaluate to true, because ‘cat’ can be found in ‘catcat’.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up13·2 years agobash: syntax error near unexpected token `in’
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up4arrow-down2·2 years agoA gold star for you! Now find a language where “cat cat in cat cat cat” is legal.
minus-squarePoolloverNathan@programming.devlinkfedilinkarrow-up7arrow-down1·2 years agocat cat in cat cat cat is legal Bash if cat and in exist, "cat cat" in "cat cat cat" is Python.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2arrow-down3·2 years agoMy point is that it’s not a shell script.
minus-squaredalekcaan@lemm.eelinkfedilinkarrow-up7·2 years agoBuffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.
Cat cat in cat cat cat.
As a unix shell script:
(cat ‘cat’) in (cat ‘cat’ ‘cat’)Which should evaluate to true, because ‘cat’ can be found in ‘catcat’.
bash: syntax error near unexpected token `in’
A gold star for you! Now find a language where “cat cat in cat cat cat” is legal.
cat cat in cat cat catis legal Bash ifcatandinexist,"cat cat" in "cat cat cat"is Python.My point is that it’s not a shell script.
BOOOO!
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.