flat assembler
Message board for the users of flat assembler.
Index
> Linux > FASM File Overwriting |
Author |
|
JohnFound 15 Mar 2015, 08:53
Hm, interesting problem. It is because in Linux there is no dedicated extension for the executable files.
And I really can't imagine some reasonable way to handle it. One possible way is to check the executable flag of the rewritten file. If it is not set, the rewrite should fail. But such approach can fail on file systems that do not support UNIX file permissions - for example, if from Linux you try to compile on FAT or NTFS file system. In this case, depending on file system mounting options both are possible - file to be always rewritten and file to be never rewritten. P.S. HaHaAnonymous, having "important" files, not backed up is not good at all. I would suggest using some version control system for the important files. This way you can never lost them because of any reason, including hardware faults, bugs and wrongly typed "rm" command. Check Fossil SCM - it is the best tool I ever found for version control. And it is really easy to be used. |
|||
15 Mar 2015, 08:53 |
|
cod3b453 15 Mar 2015, 11:03
I'm not sure how that's happened since the behaviour I observe is ".bin" is the default suffix so the output is "source.asm.bin"; if I try to force no extension I still get "source.asm." (something I'd hit a while ago without an indication of good-/bad-ness http://board.flatassembler.net/topic.php?t=13535). In my case, I was trying to overwrite the source file as part of a shared FASM/C build but since changed to longer naming that avoided the issue.
My steps were: Quote: #!/bin/bash Quote: bash fasm_test.bash |
|||
15 Mar 2015, 11:03 |
|
HaHaAnonymous 15 Mar 2015, 16:29
Quote:
Thanks for the suggestion. cod3b453 In my opinion, the "fasm <input> <output>" is the safest route. As nothing unexpected will be overwritten and you can name the way you want it. |
|||
15 Mar 2015, 16:29 |
|
nkeck72 28 May 2015, 20:52
Quote:
Literally the first time you run ./fasm it is there. also Quote:
I have had the same problem from both the Windows Console version and the DOS version. It's probably safest to go with ./fasm <input> <output> |
|||
28 May 2015, 20:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.