On 1/5/06, Luis Finotti <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> I realize that this should be "way off topic", so sorry about that...
>
> I've been working on a bash script, but when I run something like:
> ---------------
> #!/bin/bash
>
> echo $(pwd)
> ----------------
> I always get $HOME, not the current working directory.  I'd need to
> continue in the working directory from where the script was called to
> work on the files there.  (I'd like it to be portable too, so although
> it seems to work in my home machine running sarge, it doesn't work
> with Fedora or OSX...)

Do you have some sort of "cd $HOME" type statement in your .bashrc or
.bash_profile or .profile file (or similar)?

Reply via email to