Prompt confirmation y/n to move a file...

OP
OP
Spartrekus

Spartrekus

Daemon

Reaction score: 151
Messages: 1,150

I just did
Code:
  scp -r -C directory   192.168.25.100:/bsddrive
, this did not ask for a confirmation prompt when overwritting distant.

Thus to be coherent mv and cp should work the same, without forcing option.

scp is very useful, because things just work without worrying about permissions or whatever popups, warning and rings.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,562
Messages: 30,279

I suggest you ask Tatu Ylönen why there's a difference. He's the one that wrote the original SSH code from which OpenSSH was forked.
 
OP
OP
Spartrekus

Spartrekus

Daemon

Reaction score: 151
Messages: 1,150

I suggest you ask Tatu Ylönen why there's a difference. He's the one that wrote the original SSH code from which OpenSSH was forked.
maybe interesting to have his opinion indeed.

scp and ssh is good to overwrite to bring more reliable data file transfert.
The point would maybe to look why BSD has 'y' prompt using cp and mv for base system.

Actually, originally Unix was written with cp and mv and they had no confirmation prompt. The code of Unix v.5 of cp is very simple, readily would erase whatever and destroy the machine if bad command line.

In all cases, it is better to use a reliable cp and mv, rather than using rsync, if simple cp / mv is needed, for easy and not much demanding copy/move.
 

aragats

Daemon

Reaction score: 512
Messages: 1,234

The situation when the target already exists is a special case. It may not be possible to overwrite it without causing a crash – why don't you want to accept this fact?
 

kpedersen

Daemon

Reaction score: 524
Messages: 1,412

I think that I will reinstall Plan9. It might be quite good alternative for making backups.
For your ideal world; Plan 9 really could be what you want.

The original designers only made one critical mistake through its whole development; they overestimated the importance of a mouse!
 
OP
OP
Spartrekus

Spartrekus

Daemon

Reaction score: 151
Messages: 1,150

For your ideal world; Plan 9 really could be what you want.

The original designers only made one critical mistake through its whole development; they overestimated the importance of a mouse!
You do not need a mouse - me neither. We just need a good gamer keyboard for nice clics -

I need Unix v.5 or an early BSD release - simple and powerful enough for CLI.
The crap is PDFLATEX that is so huge and not compilable on early BSD versions.

FreeBSD is awesome - thank you guys for your efforts - it is great
 
OP
OP
Spartrekus

Spartrekus

Daemon

Reaction score: 151
Messages: 1,150

The situation when the target already exists is a special case. It may not be possible to overwrite it without causing a crash – why don't you want to accept this fact?
there no risk of a crash - it is an utopy.
rm -rf is also a risk.
 
Top