@GrammarPolice@lemmy.world to memes@lemmy.world • 9 months agobumlemmy.worldimagemessage-square24fedilinkarrow-up1703arrow-down121
arrow-up1682arrow-down1imagebumlemmy.world@GrammarPolice@lemmy.world to memes@lemmy.world • 9 months agomessage-square24fedilink
minus-square@deegeese@sopuli.xyzlinkfedilink21•edit-29 months agoAs a unix shell script: (cat ‘cat’) in (cat ‘cat’ ‘cat’) Which should evaluate to true, because ‘cat’ can be found in ‘catcat’.
minus-square@SpaceNoodle@lemmy.worldlinkfedilink9•9 months agobash: syntax error near unexpected token `in’
minus-square@deegeese@sopuli.xyzlinkfedilink1•9 months agoA gold star for you! Now find a language where “cat cat in cat cat cat” is legal.
minus-square@SpaceNoodle@lemmy.worldlinkfedilink-2•9 months agoMy point is that it’s not a shell script.
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!