I've made big changes to my system so I can't tell you "firsthand" (actually testing on my system, like I would prefer). But I have used this (long-form) command often. As well, /sometimes/ the alias would work and /sometimes/ not. It depends on what other aliases I commented-out. That's why I suspect it's a #-of-aliases capacity issue of some sort. The thing is that which alias is working and which is broken is unpredictable to me .... and let me tell you, I've spent some time testing & trying :/I've sought on the net for info about aliases and found nothing indicating a limitation on their number or collective size.
I had a similar problem recently and it turned out the alias was being invoked but the command it was running was issuing the 'not found' error. What happens if you type
mount -t msdos /dev/fd0u1680 /mnt/16 ; cd /mnt/16
at a shell prompt?
So to address your query: I think that it's fair to say that I did type the full command at the prompt and it would work ok - the bustage was purely within the alias implementation.
The big changes of which I was speaking: ... Ok, I cut my teeth on DOS so let's abandon this alias idea and go back to ole 'bat' files - local.lrp is a nice place for them to live.
But... when these scripts are run they create a new instance of the shell. So if I want a batch file to change me to a different dir I need to issue:
. somebatchfile
... to affect the 'current' shell instance, which is kind of a pain. But I /can/ create an alias to:
. somebatchfile
from:
somebatchfile
... but ack, I've come across this alias-disappearing problem again! It seems that lots of my 'bat' files want to change dirs so I've still got lots of aliases.
If someone wants to guinea-pig on their system (I'm using Bering 1.2), here's what I have done to be able to reliably reproduce the problem:
- remove all aliases (in /etc/profile and /root/.profile)
- into /etc/profile insert 41 new aliases (41 was just how many aliases I concocted - nothing special about the number 41)
- e.g:
alias xx00="echo Works: xx00"
up to:
alias xx40="echo Works: xx40"
- login
- attempt to execute these 41 new aliases
Numbers 34,35,36,39 and 40 failed to run, giving me an error of: "xxNN: not found", where NN was 34 or 35 or the other 'culprits'. All the rest were fine.
Strange eh, how # 37 & 38 /did/ work, but 34-36 & 39 & 40 don't? I am positive that typos are not the issue.
Might anyone want to see if this happens on their box as well, or ponder what's happening here? I don't do any compiling so I can't go much further along the path of resolution, other than this definitive reproducibility on my own setup.
Another observation: What if I have the same number of aliases but change the size of each? For example:
alias xx00="echo WorksWorksWorksWorksWorksWorks: xx00"
... Well, instead of 5 not working we have 6 not working, and of those 6, 2 are the same as with the smaller aliases and 4 are different. Weird, weird, weird.
To make it easy for someone to possibly help me out here by trying to reproduce on their system, below are the aliases that you can cut & paste into /etc/profile:
=-=-=-=-=-=-=-=-=-=-=-=-
alias xx00="echo Works: xx00"
alias xx01="echo Works: xx01"
alias xx02="echo Works: xx02"
alias xx03="echo Works: xx03"
alias xx04="echo Works: xx04"
alias xx05="echo Works: xx05"
alias xx06="echo Works: xx06"
alias xx07="echo Works: xx07"
alias xx08="echo Works: xx08"
alias xx09="echo Works: xx09"
alias xx10="echo Works: xx10"
alias xx11="echo Works: xx11"
alias xx12="echo Works: xx12"
alias xx13="echo Works: xx13"
alias xx14="echo Works: xx14"
alias xx15="echo Works: xx15"
alias xx16="echo Works: xx16"
alias xx17="echo Works: xx17"
alias xx18="echo Works: xx18"
alias xx19="echo Works: xx19"
alias xx20="echo Works: xx20"
alias xx21="echo Works: xx21"
alias xx22="echo Works: xx22"
alias xx23="echo Works: xx23"
alias xx24="echo Works: xx24"
alias xx25="echo Works: xx25"
alias xx26="echo Works: xx26"
alias xx27="echo Works: xx27"
alias xx28="echo Works: xx28"
alias xx29="echo Works: xx29"
alias xx30="echo Works: xx30"
alias xx31="echo Works: xx31"
alias xx32="echo Works: xx32"
alias xx33="echo Works: xx33"
alias xx34="echo Works: xx34"
alias xx35="echo Works: xx35"
alias xx36="echo Works: xx36"
alias xx37="echo Works: xx37"
alias xx38="echo Works: xx38"
alias xx39="echo Works: xx39"
alias xx40="echo Works: xx40"
=-=-=-=-=-=-=-=-=-=-=-=-
... and to test the running of all the aliases, in one simple fell swoop (it happens if they are individually run one at a time, too):
=-=-=-=-=-=-=-=-=-=-=-=-
xx00;xx01;xx02;xx03;xx04;xx05;xx06;xx07;xx08;xx09;xx10;xx11;xx12;xx13;xx14;xx15;xx16;xx17;xx18;xx19;xx20;xx21;xx22;xx23;xx24;xx25;xx26;xx27;xx28;xx29;xx30;xx31;xx32;xx33;xx34;xx35;xx36;xx37;xx38;xx39;xx40
=-=-=-=-=-=-=-=-=-=-=-=-
Though I can't make any compile-level changes, if this is not observed by others than I can at least begin to look at my own unique setup.
Thanks for any assistance that may be forthcoming.
scott; canada
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
