Fix crash when entering quotes in command string.
Fix editing of file copies.