Welcome, Guest. Please login or register.

Author Topic: AmigaOS 68k development - components, critics, bugs, work-arounds, tips&tricks  (Read 47884 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline patrik

Try the which command to get volume name from device:. Unfortunately, before 3.2 it is bugged and doesn’t work if the root of the device doesn’t have +e or +s bit set.
« Last Edit: January 07, 2020, 03:04:49 PM by patrik »
 

Offline patrik

Try the which command to get volume name from device:. Unfortunately, before 3.2 it is bugged and doesn’t work if the root of the device doesn’t have +e or +s bit set.
Huh, that looks more like an unintended bi-effect of a bug than an actual feature...

"WHICH lets you find a particular command, program, or directory by entering
 its name. If the named item is in the search path, WHICH displays the
 complete path to that item."

http://www.jaruzel.com/amiga/amiga-os-command-reference-help/which.html
 

Offline patrik

Out of curiosity, when is volume name without colon needed?
 

Offline patrik

Super tip:

If you want to protect a bunch of files from being deleted or mangled with (well, renaming always work), there is of course C:Protect, but filesystem flags can be overwritten, or overwrite enforced etc.

So a different approach is to use C:Assign.

Assigns do not just work on directories, as they are normally used, but also on files, and once a file is part of an assign, the OS will claim it as "busy" and protect it with claws, beak, fang etc.

So, to be a little paranoid, take all files you really really care about, and make an assign and let it point to all those files.



Also, one can use assign instead of alias if one wish...

Code: [Select]
Assign Less: SYS:Utilities/More
Less: S:Startup-Sequence

Whacky, huh?

Very interesting, thanks for the tips!