This is a bit of a puzzle to me.
If I do the following:
1 - Change to the /etc directory
2 - echo $HISTFILE | cd
I would expect one of two things to follow.
1 - I get changed to the directory that HISTFILE is holding
2 - I get changed to my home directory on my system
The problem that I am having is the command does neither. It leaves me in the /etc directory.
This is under Red Hat Linux. I believe the version is 5.2 ( I know it's old but piping should work)
Thanks in advance.
Steve
If I do the following:
1 - Change to the /etc directory
2 - echo $HISTFILE | cd
I would expect one of two things to follow.
1 - I get changed to the directory that HISTFILE is holding
2 - I get changed to my home directory on my system
The problem that I am having is the command does neither. It leaves me in the /etc directory.
This is under Red Hat Linux. I believe the version is 5.2 ( I know it's old but piping should work)
Thanks in advance.
Steve