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

Ben Lindstrom mouring at offwriting.org
Mon Nov 5 02:01:53 AEDT 2018



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


More information about the openssh-unix-dev mailing list