Great article. I have been bitten by aliases more than once.
I remember pulling my hair out over a failing mount command for several hours on a collocated server where a sys admin had aliases the mount command. I tried everything to get my USB drive to mount to no avail.
Finally I tried type mount and learned that mount was aliased. :mad:
The alias caused all my args and options to be misinterpreted by the system and I kept getting unexplainable usage errors.
This experience alone caused me to question aliases as a good practice to avoid typing long options.
I personally create mini shell scripts when I find something repetitive and give the shell script a clever unique name to avoid this nonsense.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article. I have been bitten by aliases more than once.
I remember pulling my hair out over a failing
mount
command for several hours on a collocated server where a sys admin had aliases themount
command. I tried everything to get my USB drive to mount to no avail.Finally I tried
type mount
and learned thatmount
was aliased. :mad:The alias caused all my args and options to be misinterpreted by the system and I kept getting unexplainable usage errors.
This experience alone caused me to question aliases as a good practice to avoid typing long options.
I personally create mini shell scripts when I find something repetitive and give the shell script a clever unique name to avoid this nonsense.