Hi,
I confess to be stuck ...
as explained here
Aliases - Bash Reference Manual
I added
shopt -s expand_aliases
to my script ... but it didn't work.
Later I've read I had to add this at the begning of my my script :
. ~/.bash_aliases
(of course my aliases are in this file)
but again, the alias command is not found in my script ...
any helps would be welcome.
(please avoid saying I shouldn't use aliases in scripts ... I KNOW IT )
---------- Post updated at 09:46 PM ---------- Previous update was at 04:52 PM ----------
ok I found my mistake... it was because I used an alias in a variable ... and this doesn't simply work in bash ...