Closed dzsquared closed 11 months ago
If the -? Is put in quotes does that fix the issue.
I think ? Might be a special character in the zsh she'll
Yep, that does it.
sqlcmd "-?"
provides output
For documentation purposes, is there a way to resolve this so that it provides output without the quotes? I'm hoping for something useful when a customer runs it on macOS as opposed to an error. zsh is the default shell on macOS now. -?
works fine on bash.
sqlcmd --version
works for the Go sqlcmd if the goals are to tell if you are running it and to see what version it is.
@shueybubbles For the documentation, I want to say "Here's one command that works across all versions and platforms", and currently that's sqlcmd '-?'
.
for go-sqlcmd, sqlcmd --help
works across all versions and platforms. Are you looking for a command that works across go-sqlcmd and ODBC sqlcmd?
Yes.
For the documentation, I want to say "Here's one command that works across all versions and platforms", and currently that's sqlcmd '-?'.
This is the same behavior as the ODBC version due to the way mac os treats the ?.
sqlcmd 1.1.0 macos 13.5