[Fish-users] do you use `status current-line-number` or have an opinion about it?

2017-06-24 Thread Kurtis Rader
If you use `status current-line-number` or `status --current-line-number` or simply have an opinion about how it should behave I invite you to add a comment to https://github.com/fish-shell/fish-shell/issues/4161. The current behavior is not very useful. So I'm soliciting feedback on how people wou

Re: [Fish-users] what is wrong with this use of test and $argv?

2017-06-24 Thread Kurtis Rader
While POSIX 1003 compatibility is not a high priority for fish the `test` command does follow the standard. You'll get a similar error in bash and zsh. You should always quote the argument to `test -n` and `test -z`. Your original code has other problems as well. For example, you assume that if the

Re: [Fish-users] what is wrong with this use of test and $argv?

2017-06-24 Thread Cedric Auger
count $argv should tell you the number of arguments 2017-06-24 23:48 GMT+02:00 Greg Reagle : > Hello. I am using fish version 2.6.0. > > I wrote the following script: cat testing-test.fish: > --- > #!/usr/bin/fish > > test -z $argv; and echo NO argument > --- > > greg@t400 ~/s/bin> ./testing-te

[Fish-users] what is wrong with this use of test and $argv?

2017-06-24 Thread Greg Reagle
Hello. I am using fish version 2.6.0. I wrote the following script: cat testing-test.fish: --- #!/usr/bin/fish test -z $argv; and echo NO argument --- greg@t400 ~/s/bin> ./testing-test.fish NO argument greg@t400 ~/s/bin> ./testing-test.fish 1 greg@t400 ~/s/bin> ./testing-test.fish 1 2 test: une