2006/1/22, Axel Liljencrantz <[EMAIL PROTECTED]>: > On 1/22/06, Claes Nästén <[EMAIL PROTECTED]> wrote: > > On Sun, Jan 22, 2006 at 09:36:52PM +0900, Hiroshi SAKURAI wrote: > > > Hi > > > > > > When I try to complete ls command, error occurs. > > > > > > $ ls -<TAB> > > > fish: Unknown command 'seq' > > > /usr/local/etc/fish.d/completions/ls.fish (line 1): seq (count $argv) > > > > > > The cause of the error is that NetBSD 2.x does't have 'seq'. > > > 'seq' first appears on NetBSD 3.0 that was released last December. > > > > > Same goes for Solaris, accoarding to the FreeBSD Hypertext Man Pages > > http://www.freebsd.org/cgi/man.cgi it did not match in FreeBSD or OpenBSD > > either. > > > > > > It would be nice if fish have builtin_seq. > > > > > Or atleast a int only builtin_seq? > > According to the FreeBSD man pages, both these systems have bc. So > this shellscript should work: > > function seq -d "Print a sequnce of numbers" [...] > end > > It handles most the things regular seq does. I guess it could be > included with fish inside a test for a regular seq.
Ok, I've now added an autoconf test to check for presense of the seq command, and if seq isn't present, the above seq implementation is installed. > > > > > > > Thanks. > > > > > > -- > > > Hiroshi SAKURAI > > > http://vimrc.hp.infoseek.co.jp/ > > > > > > > -- > > Claes Nästén, <[EMAIL PROTECTED]>, http://www.pekdon.net/ > > > > -- > Axel > -- Axel
