Sometimes it's all about the aesthetics.

1/22/2008

A history file that crashes your tcsh in leopard

[localhost:~] johndoe% tcsh --version
tcsh 6.14.00 (Astron) 2005-03-25 (powerpc-apple-darwin) options wide,nls,dl,al,kan,sm,rh,color,filec
[localhost:~] johndoe%
[localhost:~] johndoe% bash
localhost:~ johndoe$ cd
localhost:~ johndoe$ mkdir backup.tcshtest
localhost:~ johndoe$ mv .history .login* .cshrc* .tcsh* backup.tcshtest/
localhost:~ johndoe$ curl http://mjhsieh.googlepages.com/history-crash -o .history
localhost:~ johndoe$ bash -c 'LANG=en_US.UTF-8 tcsh'
Segmentation fault
localhost:~ johndoe$ bash -c 'LANG=C tcsh'
[localhost:~] johndoe%
[localhost:~] johndoe% exit
localhost:~ johndoe$ rm .history
localhost:~ johndoe$ bash -c 'LANG=en_US.UTF-8 tcsh'
[localhost:~] johndoe%
[localhost:~] johndoe% exit
localhost:~ johndoe$ mv backup.tcshtest/.??* .
localhost:~ johndoe$ exit
[localhost:~] johndoe%
    Reference:
  1. https://bugs.launchpad.net/ubuntu/+source/tcsh/+bug/86683

No comments: