> Arne Schmitz wrote:
>> Roy Schestowitz schrieb:
>>> Is there some scope
>>> limitation? Do they expire when scripts apart from .bashrc end?
>> You have to source the script, not execute it from .bashrc. Sourcing is
>> done like this:
>> . yourscript.sh
>> Without the leading tab, of course.
> I have the following in my bashrc:
> test -s ~/.alias && . ~/.alias
> Then I put my aliasses in `.alias`
> alias newspost="newspost -v -e /home/houghi/newspost.txt"
> alias ldir='ls -l|grep "^d"'
> alias r90="mogrify -rotate 90 "
> alias r270="mogrify -rotate 270 "
> alias r180="mogrify -rotate 180 "
> That line is in there by default. No idea what the OP wants to put in as
> script, because aliasses are aliasses. A script is something different.
Thank you Houghi and Arne for the quick response.
I have used the first solution as it was simpler. I also learned something
I am aware that aliases should not be put in a script. I have done it ever
since I started using Linux and it never broke so I carried on with these
tactless definitions. I am now at the stage where I 'clean up' my bad Linux
practices because stupidity is costly.
Roy S. Schestowitz