Solarisがぐるぐる起動するときみたいなQuineできたよ(バックスラッシュをエスケープするのが微妙←

$ cat x.rb
c="|/-\\";eval s=%q(puts %(c=#{c.chars.rotate.join.dump};eval s=%q(#{s})))
$ while true; do ruby x.rb | tee y.rb; mv -f y.rb x.rb; done
c="/-\\|";eval s=%q(puts %(c=#{c.chars.rotate.join.dump};eval s=%q(#{s})))
c="-\\|/";eval s=%q(puts %(c=#{c.chars.rotate.join.dump};eval s=%q(#{s})))
c="\\|/-";eval s=%q(puts %(c=#{c.chars.rotate.join.dump};eval s=%q(#{s})))
c="|/-\\";eval s=%q(puts %(c=#{c.chars.rotate.join.dump};eval s=%q(#{s})))
:

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.zunda.ninja/users/zundan/statuses/115805720459890237 on your instance and quote it. (Note that quoting is not supported in Mastodon.)