severity 494109 wishlist
quit

I guess this is a wishlist bug then: I wish the scp message were
processed or discarded so as to make this experience less scary.

Oh, and thanks for the fantastic darcs system!  Love the algebra.

                                        Cheers,

                                        --Barak.

PS The exit value of the scp process can be used to flag
success/failure, so there is no need to actually parse its stderr.

  $ scp /dev/null ~/tmp/null ; echo exit status: $?
  exit status: 0

  $ scp /dev/nulll ~/tmp/null ; echo exit status: $?
  cp: cannot stat `/dev/nulll': No such file or directory
  exit status: 1

  $ scp /etc/sudoers ~/tmp/null ; echo exit status: $?
  cp: cannot open `/etc/sudoers' for reading: Permission denied
  exit status: 1

  $ scp ~/tmp/null ; echo exit status: $?
  usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
             [-l limit] [-o ssh_option] [-P port] [-S program]
             [EMAIL PROTECTED]:]file1 ... [EMAIL PROTECTED]:]file2
  exit status: 1

  $ scp nonesuch.example.com:foo ~/tmp/null ; echo exit status: $?
  ssh: nonesuch.example.com: Name or service not known
  exit status: 1



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to