Am I the only one who likes filename globbing, ONLY when it works?  One of
my biggest annoyances with zsh was the default mode of globbing everything.
And, zsh almost has me trained to glob properly with fish . . . almost.

But, in zsh, there IS a way to turn it off -- is there in fish?

For example, let's try to scp a file, by mask, from a server at my house:

First, let's create it:
codemon...@daves-mbp ~> ssh someserver touch someFile.something
codemon...@daves-mbp ~>

Now, let's try to scp it with fish.

codemon...@daves-mbp ~> scp someserver:someFile* .
fish: Warning: No match for wildcard 'someserver:someFile*'. The command
will not be executed.
scp someserver:someFile* .
    ^

Now, let's try to scp it with zsh:
codemon...@daves-mbp ~> zsh
1001:codemon...@daves-mbp ~ % scp someserver:someFile* .
zsh: no matches found: someserver:someFile*

Finally, let's do it with bash -- how beautiful!
1002:1-codemon...@daves-mbp ~ % bash
codemon...@daves-mbp ~ $ scp someserver:someFile* .
someFile.something                            100%    0     0.0KB/s
00:00
codemon...@daves-mbp ~ $


In zsh, there is some setting you can use to make things work.  And, you can
also do:  noglob zsh someserver:someFile* .

Besides training myself to always use quotes, i.e.: 'scp
"someserver:someFile*" .' is there a better way to make globbing just work,
as it does in bash?  I.e. when no matches are found, assume that the user
wasn't globbing?

-Dave
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to