← Back to context Comment by immibis 5 days ago No, the problem is that even if you quote your data, ssh unquotes it, so you have to quote it twice. 8 comments immibis Reply blueflow 5 days ago > ssh unquotes itssh does not unquote. Its the local shell, if you are invoking ssh via execv, this does not apply. immibis 5 days ago So instead of unquoting your data itself, ssh invokes another program to unquote it. That's a distinction without a difference. blueflow 5 days ago No, ssh is called by the local shell. ssh never gets to see the quoted value that you typed in your shell. This mechanism is unrelated to ssh, at all: $ printf "%s\n" "asdf" asdf You see the double quotes go missing.This happens as part of the shell turning the command string into argument vectors to pass to execv(). 5 replies →
blueflow 5 days ago > ssh unquotes itssh does not unquote. Its the local shell, if you are invoking ssh via execv, this does not apply. immibis 5 days ago So instead of unquoting your data itself, ssh invokes another program to unquote it. That's a distinction without a difference. blueflow 5 days ago No, ssh is called by the local shell. ssh never gets to see the quoted value that you typed in your shell. This mechanism is unrelated to ssh, at all: $ printf "%s\n" "asdf" asdf You see the double quotes go missing.This happens as part of the shell turning the command string into argument vectors to pass to execv(). 5 replies →
immibis 5 days ago So instead of unquoting your data itself, ssh invokes another program to unquote it. That's a distinction without a difference. blueflow 5 days ago No, ssh is called by the local shell. ssh never gets to see the quoted value that you typed in your shell. This mechanism is unrelated to ssh, at all: $ printf "%s\n" "asdf" asdf You see the double quotes go missing.This happens as part of the shell turning the command string into argument vectors to pass to execv(). 5 replies →
blueflow 5 days ago No, ssh is called by the local shell. ssh never gets to see the quoted value that you typed in your shell. This mechanism is unrelated to ssh, at all: $ printf "%s\n" "asdf" asdf You see the double quotes go missing.This happens as part of the shell turning the command string into argument vectors to pass to execv(). 5 replies →
> ssh unquotes it
ssh does not unquote. Its the local shell, if you are invoking ssh via execv, this does not apply.
So instead of unquoting your data itself, ssh invokes another program to unquote it. That's a distinction without a difference.
No, ssh is called by the local shell. ssh never gets to see the quoted value that you typed in your shell. This mechanism is unrelated to ssh, at all:
You see the double quotes go missing.
This happens as part of the shell turning the command string into argument vectors to pass to execv().
5 replies →