On Mon, Feb 22, 2010 at 10:50:39PM +0100, LEVAI Daniel wrote:
| Hi!
| 
| With ksh's Vi edit mode I've experienced the following:
| If a file's size is exactly 2GiB or more, pdksh fails to complete its name
| during filename completion (eg.: hitting TAB or CTRL+e or whatever).
| If the file's size is just one byte short of the 2 gigs, then the completion
| works fine.
| 
| Quick way to test it:
| $ dd if=/dev/zero of=./2GiB bs=1024 count=2097152
| $ ls -la 2G<TAB><TAB><TAB><TAB> ... => nothing
| 
| 
| Daniel
| 
| 
| ps.: this is under -current and i386

That's some weird shit you've got going there...

$ dd if=/dev/zero of=2gigabyte bs=2048 count=1 seek=1048575
$ echo 2g<TAB> -> immediately completes to 2gigabyte.
$ echo $VISUAL
vi
$ echo $SHELL
/bin/ksh
$ echo $KSH_VERSION
@(#)PD KSH v5.2.14 99/07/13.2
$ sysctl kern.version
kern.version=OpenBSD 4.7-beta (GENERIC.MP) #86: Wed Feb 10 07:17:52 MST 2010
    t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Tried it on an (admittedly older) i386 and sparc64 machine and got the
same. Also tried it with a non-sparse file (seek= creates sparse
files when you're writing past the end of the file) and it still
worked.

So .. uhm .. works for me [TM]

Paul 'WEiRD' de Weerd

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to