![]() |
![]() |
#1 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
Amiga command search path
A quick question for the technical gurus.
Does the Amiga search its internal ROM command list first, or last when a shell command is issued? In other words, does it search through all the directories specified by "Path", then look at the internal commands, or is the internal the first one executed regardless of what's in the path directories? Last edited by Bloodwych; 13 December 2007 at 15:28. |
![]() |
![]() |
#2 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
@Bloodwych
If memory serves, Path is absolute, it checks there before anywhere else, this includes any mount entries to device / volume I am unsure how a make-resident command would work, but I expect again Path would include it if not its volume / device etc.. |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
I've just done a test - renamed another pure command "Resident" and placed it in the C directory, to see if it over-rides the internal command.
It still ran the internal command first, so there's my answer. I thought it would search the ROM/internal list first, then the specified path (RAM:, C: etc), but just wanted to check. Resident commands stop multiple copies being held in RAM when they are in use, so I'm assuming they again would be executed before any path search is initiated to eliminate disk access and save memory load. Thanks for the response Zetro. ![]() |
![]() |
![]() |
#4 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
@Bloodwych
You could always add RAM: to path... this would completely reduce any disk access... as it would execute the first command required that PATH came across wouldn't it? more that welcome to my response my friend... I am above all things a POST whore ![]() |
![]() |
![]() |
#5 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
|
|
![]() |
![]() |
#6 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
@Musashi
yeah.... i cannot tell a lie.... PJ is sooooo jealous.... in fact soooo jealous he is like jelly jealous ![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
Average of nearly 5 posts a day and joined in 2005!
I joined back in 2001 and have less than half the posts! Zetro you are posting legend. Is there a day that goes by that you don't check out EAB? ![]() |
![]() |
![]() |
#8 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
@Bloodwych
a day not checking out EAB ???!?!??! be still that blasphemy!!!! Jesus!! thats a nightmarish thought.... I start getting withdrawal symptoms after 4 hours if i don't check for new posts.... ![]() I do have scairy dreams, that when i click it it says there are no - new posts..... and there are no more posts for you.... |
![]() |
![]() |
#9 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
|
|
![]() |
![]() |
#10 |
Registered User
Join Date: Dec 2007
Location: Oooh what a feeling yeaaah dancing on the ceiling
Posts: 314
|
Numpty numpty numpty numpty numpty numpty num....
Oh, don't mind me, I'm just numptying about. Here's an experiment for you. Don't worry about the quote marks, don't enter them, they are only in what follows to emphasise what I'm doing. . Make a new drawer somewhere on your Amiga, and call it "Testing" (I made one in the root of DH0: ) . Open the C drawer . Select "List" . Choose the menu option Icons/Copy . The system will make Copy_of_List . Drag Copy_of_List into Testing . Select it and choose Icons/Rename and call it "dir" instead . Open a Shell and make sure you are in the root of the drive . Type "dir testing" . You will see the output from Dir... . Type "testing" . Now type "dir" . You will see the output from List... . Type "/" . Type "dir testing" . You will see the output from Dir... Hmmm... If you want to see why this happens, type "path" into the Shell. Numpty numpty numpty numpty numpty numpty num.... Last edited by meega; 17 December 2007 at 20:33. |
![]() |
![]() |
#11 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
What are you on about meega?
![]() ![]() All you're doing is showing that shell searches the current directory first, before looking elsewhere as specified in "Path". By default, without any "Path" specified, I think it's current directory then C: The thread was about if the internal ROM commands always come first, regardless if the same command is in the current directory or C: or whatever. It's already been established through a simple test that the internal ROM command always comes first. Seems obvious I know, but I was just thinking out loud when I made this thread. ![]() |
![]() |
![]() |
#12 |
Registered User
Join Date: Dec 2007
Location: Oooh what a feeling yeaaah dancing on the ceiling
Posts: 314
|
Both Dir and List are pure, and can be residented. I do, in fact, have most of the C drawer resident (I had to issue "Resident Dir REMOVE" before I did the above).
Make Dir resident, and then try. That'll also answer your question. I did say "don't mind me" :-) |
![]() |
![]() |
#13 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
Ok, fair enough.
![]() ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Missile Command for Amiga? | Retrofan | request.Old Rare Games | 9 | 09 August 2013 15:06 |
2.2 default path changes | sun68 | support.WinUAE | 4 | 19 July 2010 21:31 |
Path command... | illy5603 | New to Emulation or Amiga scene | 16 | 29 September 2008 00:15 |
Amiga Search Engine | haps | Amiga scene | 8 | 24 February 2007 18:17 |
Golden Path | coach | support.Games | 3 | 16 December 2002 22:09 |
|
|