flat assembler
Message board for the users of flat assembler.

Index > Main > I accidentially made fasm overwrite my source code

Author
Thread Post new topic Reply to topic
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
Recently, I accidentially typed into a the command prompt (a bash shell with completion enabled):
Code:
fasm test.asm test.asm
    

and made fasm overwrite the source file. Hopefully I had a backup.

Seriously, I would like to change the behaviour of fasm and make it not overwrite files that are also specifed as source files. Or should I just be more careful when typing?

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 11 Jun 2011, 15:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17667
Location: In your JS exploiting you and your system
revolution
This would probably be a better option:
Code:
fasm test.asm    
Post 11 Jun 2011, 15:41
View user's profile Send private message Visit poster's website Reply with quote
idle



Joined: 06 Jan 2011
Posts: 360
Location: Ukraine
idle
revolution,
Code:
format binary as 'asm'
    
Post 11 Jun 2011, 18:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17667
Location: In your JS exploiting you and your system
revolution
idle wrote:
Code:
format binary as 'asm'
    
Yeah, there should warnings on guns saying "Do not point at your own head and pull the trigger".
Post 11 Jun 2011, 18:20
View user's profile Send private message Visit poster's website Reply with quote
JoeCoder1



Joined: 13 Jun 2011
Posts: 62
JoeCoder1
I started using version control just to make my environment easier. If you use it and you delete something or mess something up you can get your previous saved version back.
Post 13 Jun 2011, 08:13
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
I've come to like tracability, so I'll probably begin to use:

Code:
format binary as 'asm.exe'     

_________________
This is a block of text that can be added to posts you make.
Post 13 Jun 2011, 21:46
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.