[maemo-users] .bashrc not executed
From: Marius Gedminas marius at pov.ltDate: Wed Jun 23 19:43:39 EEST 2010
- Previous message: .bashrc not executed
- Next message: .bashrc not executed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jun 23, 2010 at 01:38:41PM -0300, Francisco Diaz Trepat - gmail wrote:
> I have a similar issue.
>
> I put some environment variables and an alias in the .profile.
>
> this worked, so I was playing with vim to get familiar and so I took
> what I saw in my /root/.profile file and try to put it in my .profile.
> basically the:
>
> include .bashrc if it exists
> if [ -f "$HOME/.bashrc" ]; then
> . "$HOME/.bashrc"
> fi
>
> # set PATH so it includes user's private bin if it exists
> if [ -d "$HOME/bin" ] ; then
> PATH="$HOME/bin:$PATH"
> fi
>
> and moved my alias and environment variables to my new .bashrc
>
> # go environment variables
> . /opt/go/bin/go_profile
>
> # Aliases
> alias wksp='cd;cd $HOME/MyDocs/Workspace'
>
> But this didn't work. I get a:
> -sh: : not found
^
This here is a <U+00A0> NO-BREAK SPACE character. Please find it in
your .profile/.bashrc/whatever and replace it with an ordinary ASCII space.
Hint:
> if [ -f "$HOME/.bashrc" ]; then
> . "$HOME/.bashrc"
^- it's here
Marius Gedminas
--
I dont know about madness (and anyway, the little green martians dancing
around me tell me not to worry...), but I've implemented something not
unlike this just now.
-- Peter Sabaini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.maemo.org/pipermail/maemo-users/attachments/20100623/71d40348/attachment.pgp>
- Previous message: .bashrc not executed
- Next message: .bashrc not executed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
