Skip to content

Commit

Permalink
Wildcards require single or double quotes for zsh shell (#5151)
Browse files Browse the repository at this point in the history
[Preview](https://docs-getdbt-com-git-dbeatty10-patch-3-dbt-labs.vercel.app/reference/node-selection/methods#the-semantic_model-method)

## What are you changing in this pull request and why?

This code example doesn't work for me:
```shell
dbt list --select semantic_model:*
```

It gives the following error:
```
zsh: no matches found: semantic_model:*
```

But adding double quotes works great:
```shell
dbt list --select "semantic_model:*"
```

To keep things consistent, I also added double quotes to the two other
examples that were missing them.

## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
  • Loading branch information
mirnawong1 authored Mar 25, 2024
2 parents 9b32355 + 44df435 commit 3c6267d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/reference/node-selection/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ The `version` method selects [versioned models](/docs/collaborate/govern/model-v
```bash
dbt list --select "version:latest" # only 'latest' versions
dbt list --select "version:prerelease" # versions newer than the 'latest' version
dbt list --select version:old # versions older than the 'latest' version
dbt list --select "version:old" # versions older than the 'latest' version
dbt list --select "version:none" # models that are *not* versioned
```
Expand All @@ -380,8 +380,8 @@ Supported in v1.6 or newer.
The `semantic_model` method selects [semantic models](/docs/build/semantic-models).
```bash
dbt list --select semantic_model:* # list all semantic models
dbt list --select +semantic_model:orders # list your semantic model named "orders" and all upstream resources
dbt list --select "semantic_model:*" # list all semantic models
dbt list --select "+semantic_model:orders" # list your semantic model named "orders" and all upstream resources
```
</VersionBlock>

0 comments on commit 3c6267d

Please sign in to comment.