The zsh quoting advice may not prevent history expansion of `!`
Source references: 2The document says single quotes let zsh mangle `!`, then labels an unescaped `!` inside double quotes as correct. In interactive zsh with history expansion enabled, the usual behavior is the reverse: single quotes suppress expansion, while `!` inside double quotes may still expand.
The command may fail or the range argument may be unexpectedly replaced. If the replacement remains valid, it could read a different spreadsheet range than the user intended.
The Skill explicitly says single quotes cause zsh to mangle `!` and labels a double-quoted command containing an unescaped `!` as correct. In a shell environment with bang-history expansion enabled, this advice may cause argument substitution or command failure, potentially reading the wrong sheet range. Users can ask the author for quoting guidance tested with the relevant zsh options.
- **zsh `!` expansion:** Sheet ranges like `Sheet1!A1` contain `!` which zsh interprets as history expansion. Use double quotes with escaped inner quotes instead of single quotes: ```bash # WRONG (zsh will mangle the !) gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10' # CORRECT gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10" ```Show 1 other places
```bash # WRONG (zsh will mangle the !) gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10' # CORRECT gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10" ```