Hey Robert,

The fish replacement for [[ is test. See the docs here:
http://fishshell.com/docs/2.0/commands.html#test

For your specific application, you might get some mileage out of contains (
http://fishshell.com/docs/2.0/commands.html#contains ) or case (
http://fishshell.com/docs/2.0/commands.html#case )

Hope this helps


On Sun, Jun 16, 2013 at 11:49 AM, Robert O'Connell <spamed...@gmail.com>wrote:

> I want to compare a string with a wildcard, as in "[[ $1 == *.tar.gz ]]"
> How can I match strings with wildcards?
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to