Peter Flood | 2 Feb 16:48

errors when doing cd -

When I run `cd -` I get this output every time (but the command does 
work). I'm compiled and installed from the gitorious master a couple of 
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'

switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',
(Continue reading)

Jan Kanis | 3 Feb 13:02
Picon

Re: errors when doing cd -

I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info <at> whywouldwe.com> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmncRDUWM+popnw@public.gmane.orgforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Peter Flood | 3 Feb 15:11

Re: errors when doing cd -

$ seq 0
1
0


On 03/02/2012 19:02, Jan Kanis wrote:
I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
David Frascone | 3 Feb 16:12
Favicon
Gravatar

Re: errors when doing cd -

I fixed this bug a while back.


Be sure and pull from one of the repos.  Seq was broken on mac.

-Dave

On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood <info <at> whywouldwe.com> wrote:
$ seq 0
1
0



On 03/02/2012 19:02, Jan Kanis wrote:
I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmncRDUWM+popnw@public.gmane.orgforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Peter Flood | 3 Feb 16:50

Re: errors when doing cd -

I'm using the latest gitorious master, I pulled (no changes) and recompiled but still the same. Here's the latest commit when I run hg log

changeset:   1869:74cfa0edf2a5
bookmark:    master
tag:         default/master
tag:         tip
user:        Jan Kanis <jan.code <at> jan...nis.nl>
date:        Tue Jan 31 01:38:20 2012 +0100
summary:     Add stddef.h to util.c, so ptrdiff_t is defined in all environments

David, are you using OS X, do you know which changeset you're using?

Thx
Peter



On 03/02/2012 22:12, David Frascone wrote:
I fixed this bug a while back.

Be sure and pull from one of the repos.  Seq was broken on mac.

-Dave

On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
$ seq 0
1
0



On 03/02/2012 19:02, Jan Kanis wrote:
I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
David Frascone | 3 Feb 18:33
Favicon
Gravatar

Re: errors when doing cd -

So, my seq works, and I *thought* I checked it in. (Attaching now)


It is in /usr/local/bin, and I could have modified it . . not sure :)  I remember fixing it.

Try this:  

$ type seq

Then,

$ file /wherever/seq/was/in/the/filesystem

Make sure seq is a fish script text executable -- perhaps you accidentally installed some other broken version of seq?

-Dave

On Fri, Feb 3, 2012 at 8:50 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
I'm using the latest gitorious master, I pulled (no changes) and recompiled but still the same. Here's the latest commit when I run hg log

changeset:   1869:74cfa0edf2a5
bookmark:    master
tag:         default/master
tag:         tip
user:        Jan Kanis <jan.code <at> jan...nis.nl>
date:        Tue Jan 31 01:38:20 2012 +0100
summary:     Add stddef.h to util.c, so ptrdiff_t is defined in all environments

David, are you using OS X, do you know which changeset you're using?

Thx
Peter




On 03/02/2012 22:12, David Frascone wrote:
I fixed this bug a while back.

Be sure and pull from one of the repos.  Seq was broken on mac.

-Dave

On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
$ seq 0
1
0



On 03/02/2012 19:02, Jan Kanis wrote:
I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users



Attachment (seq): application/octet-stream, 894 bytes
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Peter Flood | 5 Feb 17:12

fish on raspberry pi

When I get my hands on a Raspberry Pi I will, of course, want to install 
fish in an Ubuntu environment. Can anyone foresee any problems with 
using the existing Ubuntu fish package on ARM based architecture?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Peter Flood | 5 Feb 17:14

Re: errors when doing cd -

The seq I have is the one that came with my machine, here's the output, is this what you'd expect?

$ file /usr/bin/seq
/usr/bin/seq: Mach-O universal binary with 2 architectures
/usr/bin/seq (for architecture x86_64):    Mach-O 64-bit executable x86_64
/usr/bin/seq (for architecture i386):    Mach-O executable i386


On 04/02/2012 00:33, David Frascone wrote:
So, my seq works, and I *thought* I checked it in. (Attaching now)

It is in /usr/local/bin, and I could have modified it . . not sure :)  I remember fixing it.

Try this:  

$ type seq

Then,

$ file /wherever/seq/was/in/the/filesystem

Make sure seq is a fish script text executable -- perhaps you accidentally installed some other broken version of seq?

-Dave

On Fri, Feb 3, 2012 at 8:50 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
I'm using the latest gitorious master, I pulled (no changes) and recompiled but still the same. Here's the latest commit when I run hg log

changeset:   1869:74cfa0edf2a5
bookmark:    master
tag:         default/master
tag:         tip
user:        Jan Kanis <jan.code <at> jan...nis.nl>
date:        Tue Jan 31 01:38:20 2012 +0100
summary:     Add stddef.h to util.c, so ptrdiff_t is defined in all environments

David, are you using OS X, do you know which changeset you're using?

Thx
Peter




On 03/02/2012 22:12, David Frascone wrote:
I fixed this bug a while back.

Be sure and pull from one of the repos.  Seq was broken on mac.

-Dave

On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
$ seq 0
1
0



On 03/02/2012 19:02, Jan Kanis wrote:
I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Peter Flood | 5 Feb 17:21

Re: errors when doing cd -

I've just noticed you attached your version of seq to the message, I tried it and now don't get the error any more. Many thanks



On 05/02/2012 23:14, Peter Flood wrote:
The seq I have is the one that came with my machine, here's the output, is this what you'd expect?

$ file /usr/bin/seq
/usr/bin/seq: Mach-O universal binary with 2 architectures
/usr/bin/seq (for architecture x86_64):    Mach-O 64-bit executable x86_64
/usr/bin/seq (for architecture i386):    Mach-O executable i386


On 04/02/2012 00:33, David Frascone wrote:
So, my seq works, and I *thought* I checked it in. (Attaching now)

It is in /usr/local/bin, and I could have modified it . . not sure :)  I remember fixing it.

Try this:  

$ type seq

Then,

$ file /wherever/seq/was/in/the/filesystem

Make sure seq is a fish script text executable -- perhaps you accidentally installed some other broken version of seq?

-Dave

On Fri, Feb 3, 2012 at 8:50 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
I'm using the latest gitorious master, I pulled (no changes) and recompiled but still the same. Here's the latest commit when I run hg log

changeset:   1869:74cfa0edf2a5
bookmark:    master
tag:         default/master
tag:         tip
user:        Jan Kanis <jan.code <at> jan...nis.nl>
date:        Tue Jan 31 01:38:20 2012 +0100
summary:     Add stddef.h to util.c, so ptrdiff_t is defined in all environments

David, are you using OS X, do you know which changeset you're using?

Thx
Peter




On 03/02/2012 22:12, David Frascone wrote:
I fixed this bug a while back.

Be sure and pull from one of the repos.  Seq was broken on mac.

-Dave

On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
$ seq 0
1
0



On 03/02/2012 19:02, Jan Kanis wrote:
I can't reproduce this on linux.
The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed.
What is the output of the command 'seq 0' on your system? It should not give any output at all.


On Thu, Feb 2, 2012 at 16:48, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I run `cd -` I get this output every time (but the command does
work). I'm compiled and installed from the gitorious master a couple of
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'


switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users





------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2

_______________________________________________ Fish-users mailing list Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/fish-users
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
David Frascone | 6 Feb 15:54
Favicon
Gravatar

Re: fish on raspberry pi

If fish works on other big endian platforms, then it should work find on ARM.


Has anyone tried fish on PPC, etc?

-Dave

On Sun, Feb 5, 2012 at 9:12 AM, Peter Flood <info-O17Z5ZPWbgxgJw1g6a66pQ@public.gmane.org> wrote:
When I get my hands on a Raspberry Pi I will, of course, want to install
fish in an Ubuntu environment. Can anyone foresee any problems with
using the existing Ubuntu fish package on ARM based architecture?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmncRDUWM+popnw@public.gmane.orgforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users

Gmane