[BUG?] sftp is echoing back prompt and commands in batch mode

Vincenzo Romano vincenzo.romano at notorand.it
Mon Nov 5 02:27:13 AEDT 2018


Il giorno dom 4 nov 2018, 16:01 Ben Lindstrom <mouring at offwriting.org> ha
scritto:

>
>
> Vincenzo Romano wrote:
>
> [..]
>
> As if I'm writing a batch script I want to see the echo of the command and the output so if there is a failure I know where the failure is.
>
> I see: you have a single batch file with no conditionals.
> I have multiple dynamic 1-command batches with conditionals.
> That makes the big difference.
>
>
> A simple conditional may be useful within sftp.  But I don't believe
> upstream would accept a full-fledge scripting language as that would be
> better served with a python script or a real language.
>
> But a few cases it could be useful like:
>
> cd /path
> failed:
>     mkdir /path
>     cd /path
> :deliaf
> put foo
>
> (Shitty language design constructions, but I'm just throwing out an idea
> for the wider community and for Darren/Damien to thumb up or down.)
>
>
> Ben
>

I am not aiming at a scripting language #inside# SFTP. I have the shell for
that!

>


More information about the openssh-unix-dev mailing list