I'm currently writing a script to rename a file (by using the mv command)
However, when the move fails, due to file already exist, the mv command exist with code 0
If I'm pressing ctrl-c, I will get exit code 130..
Is mv supposed to behave like this?
How why, I'm confused..
Isn't there anyway...