My workaround for "cp code.c test.c"
written by Anonymous on Thursday September 24th, 2015 -- 5:07 p.m.
in reply to
Backups and Linux's Bullshit
edit this message
-
return to message index
(only moderators may edit messages)
I used to do this accidentally all the time. My solution is this:
edit code.c
gcc -o code code.c && ./code
sh
cp code.c test.c
exit
edit code.c
gcc -o code code.c && ./code
This way it doesn't get stuck in your bash history. It's ugly, but it has saved me numerous times.
Replies
Omit from history
- crunge - 9/26/15
That's awesome...
- Pj - 10/3/15
Permanent bash history
- crunge - 10/8/15
return to previous message
-
return to message index
Your Reply
Name:
No registration necessary.
Simply choose
a name and password and type them in.
Password:
Subject:
You may want to read
the rules
before you spend a lot of time writing something.
Message:
Plain Text
- What you type is what you will see.
Some HTML
- Use this if you are including HTML tags.
Pure HTML
- Copies your post directly into the web page.
first, then