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
2015-08-03 4:30 GMT+02:00 @lbutlr :
>
> > On Aug 2, 2015, at 5:25 PM, Greg Reagle wrote:
> >
> > On Sat, Aug 01, 2015 at 01:38:02PM -0600, @lbutlr wrote:
> >> I was hoping the list was more active
> >
> > FYI, the GitHub site at https://github.com/fish-shell/fish-shell/issues
> is very
> > active
I am also using 2.1.1 (-1025-g5d1ddc9 on Ubuntu).
After:
~> def
def : commande introuvable
~> abc def
abc : commande introuvable
If I type "de" then use up arrow to navigate through history, I get "abc
def" as first choice. Thus for me it is the last command containing "de",
not the last start
"echo \-"
works in my installation.
You can also use the non-builtin:
"/bin/echo -"
2014-11-13 8:34 GMT+01:00 Santhosh T :
> Hi David,
>
> great. i can use workaround for the time being...
>
> thanks
> santhosh
>
>
> On Thu, Nov 13, 2014 at 12:42 PM, David Adam
> wrote:
>
>> This is a known
Why not create symlinks?
2014-11-01 8:40 GMT+01:00 Santhosh T :
> Hi Greg,
>
> the approach you suggested works, but not user friendly
> autocompleting variables appends SPACE rather than "/"
> i mean:
>
> cd $my_d
>
> now it autocompletes as:
>
> cd $my_dir
>
> instead of
>
> cd $my_dir/
>
> tha
2014-10-31 17:58 GMT+01:00 Santhosh T :
> when i type "ls --unknownoption"
>
> i am expected "--unknownoption" to be shown in red.
>
> fish only showing wrong commands in red color, but not wrong options
>
> i already did run "fish_update_completions"
>
> I am using MAC
>
> thanks
> Santhosh
>
>
>
begin; sleep 10; and echo "beep"; end
works in my version, but appending '&' does not change the behaviour.
I thought, that this was due to the fact that "begin;" was parsed before
"&", so I tried to "cheat" by using "eval":
eval "sleep 10; and echo \"beep\"" &
but, although "sleep 10; and echo
2014-10-09 23:17 GMT+02:00 Cheer Xiao :
> 2014-10-09 19:10 GMT+02:00 Greg Reagle :
> > I was reading an article about fish at
> > http://arstechnica.com/information-technology/2005/12/linux-20051218/2/
> > which has:
> >
> > Most other Unix shells include built-in implementations of common
> > com
Are you sure, you correctly installed it?
On my Ubuntu version, it works.
cauger@cauger-PNR ~> fish --version
fish, version 2.1.1-965-gf0d8d90
cauger@cauger-PNR ~> history --search --contains "foo"
history --search --contains "foo"
echo Hello | sendxmpp --ssl -o foo cedric.auger
cat foo
…
2014-
233.170
>
> But running:
> $ open "http://";(vip)
> Usage: open [-e] [-t] [-f] [-W] ...
>
> Any ideas?
>
> // Rickard
>
>
> On Wed, Aug 20, 2014 at 2:19 PM, Cedric Auger wrote:
>
>> Works perfectly for me:
>> --
Works perfectly for me:
-
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
cauger@cauger-PNR ~> function url
echo "some url"
end
cauger@cauger-PNR ~> open (url)/index.html
xdg-op
Have you tried using "$argv[1]" instead of "$1"?
2014-08-19 3:01 GMT+02:00 Martín Cigorraga :
> Hi,
> I'm trying to adapt a bash function to extract compressed files depending
> on the tool used to compress them:
>
> function ex
>
> # ex - archive extractor
>
> # usage: ex
>
>
Shouldn’t it be better to parse the result of 'file $1' for some of the
cases?
Many files start with a magic number which tells what this file is meant to
be. Of course, some formats may not have a magic number, and in the case of
*.tar.gz (or *.tgz) only the outer layer (gunzip) is detected, mean
13 matches
Mail list logo