Zsh and wildcard websocket-origin

I have a bokeh server application that I am trying to run with the wildcard option to allow any websocket origin, viz.

bokeh serve bkex.py --allow-websocket-origin=*

This works fine in a bash shell.

bash-3.2$ bokeh serve bkex.py --allow-websocket-origin=*

2020-06-24 09:29:27,191 Starting Bokeh server version 2.0.2 (running on Tornado 6.0.4)

2020-06-24 09:29:27,192 Host wildcard '*' will allow connections originating from multiple (or possibly all) hostnames or IPs. Use non-wildcard values to restrict access explicitly

2020-06-24 09:29:27,192 User authentication hooks NOT provided (default user enabled)

2020-06-24 09:29:27,196 Bokeh app running at: http://localhost:5006/bkex

2020-06-24 09:29:27,196 Starting Bokeh server with process id: 83169

It fails with the following error using zsh, which Mac OSX has migrated to as the default recently.

The error is as follows:

Desktop % bokeh serve bkex.py --allow-websocket-origin=*         
zsh: no matches found: --allow-websocket-origin=*

Version info:

Desktop % bokeh --version
2.0.2

Desktop % zsh --version
zsh 5.7.1 (x86_64-apple-darwin19.0)


Desktop % bash
bash-3.2$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.

Replace * with \*.

1 Like

I believe single quotes will also work.

1 Like