GrammarPolice@lemmy.world to memes@lemmy.world · 8 days agobumlemmy.worldimagemessage-square43fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imagebumlemmy.worldGrammarPolice@lemmy.world to memes@lemmy.world · 8 days agomessage-square43fedilink
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up0·edit-28 days 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-up0·8 days agobash: syntax error near unexpected token `in’
minus-squaredeegeese@sopuli.xyzlinkfedilinkarrow-up0·8 days agoA gold star for you! Now find a language where “cat cat in cat cat cat” is legal.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up0·8 days agoMy point is that it’s not a shell script.
minus-squarePoolloverNathan@programming.devlinkfedilinkarrow-up0·8 days agocat cat in cat cat cat is legal Bash if cat and in exist, "cat cat" in "cat cat cat" is Python.
minus-squaredalekcaan@lemm.eelinkfedilinkarrow-up0·8 days 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.
My point is that it’s not a shell script.
BOOOO!
cat cat in cat cat cat
is legal Bash ifcat
andin
exist,"cat cat" in "cat cat cat"
is Python.Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.