cc -O0 21.c -o 22_0
21.c: In function ‘main’:
21.c:6:5: warning: left shift count >= width of type [enabled by default]
holmes@darkstar:/home/projects/mc.old$ ./22_0
16
cc -O1 21.c -o 22_1
21.c: In function ‘main’:
21.c:6:5: warning: left shift count >= width of type [enabled by default]
holmes@darkstar:/home/projects/mc.old$ ./22_1
0
потому что так и есть… и авторитет Линуса весьма высок, несмотря на то что он любит потроллить сообщество. и в целом там царит меритократия (власть достойных)
shelr record
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load — json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/shelr.rb:3
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/bin/shelr:6
для теста запускал
cat бооольшой_файл
при нажатии ctrl-o не очищается экран от панелей. видать как то не так организована вобота с буферами экрана…
1 #include <stdio.h>
2
3 int main()
4 {
5 int i = 1;
6 printf("%d\n", (i << 100));
7 }
cc -O0 21.c -o 22_0
21.c: In function ‘main’:
21.c:6:5: warning: left shift count >= width of type [enabled by default]
holmes@darkstar:/home/projects/mc.old$ ./22_0
16
cc -O1 21.c -o 22_1
21.c: In function ‘main’:
21.c:6:5: warning: left shift count >= width of type [enabled by default]
holmes@darkstar:/home/projects/mc.old$ ./22_1
0
+ Linux мечты исполняются =)
именно так :)
github же
shelr push last
holmes@darkstar:~$ shelr push last
Your record will be published under terms of
Creative Commons Attribution-ShareAlike 3.0 Unported
See creativecommons.org/licenses/by-sa/3.0/ for details.
Description: mc test
Tags (ex: howto, linux): mc
=> Something went wrong…
getaddrinfo: Name or service not known
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
/usr/lib/ruby/1.8/net/http.rb:560:in `open'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/lib/ruby/1.8/net/http.rb:542:in `start'
/usr/lib/ruby/1.8/net/http.rb:404:in `post_form'
/var/lib/gems/1.8/gems/shelr-0.12.1/lib/shelr/publisher.rb:12:in `publish'
/var/lib/gems/1.8/gems/shelr-0.12.1/lib/shelr/publisher.rb:28:in `with_exception_handler'
/var/lib/gems/1.8/gems/shelr-0.12.1/lib/shelr/publisher.rb:8:in `publish'
/var/lib/gems/1.8/gems/shelr-0.12.1/bin/shelr:72
/usr/local/bin/shelr:19:in `load'
/usr/local/bin/shelr:19
в логах прокси пусто значит пытается напрямую ломиться…
это так и должно быть?
shelr record
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load — json (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/shelr.rb:3
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/bin/shelr:6