On Tue, 19 Dec 2006, arnuld wrote:

<snip>

> -su  "u:w$": command not found
>
> [ i checked the file ".bash_profile" to make sure that it contains this 
> line:
>
> "exec env -i HOME=$HOME TERM=$TERM PS1=`\u:\w\$ ` bin/bash"
>
>
> i know, PS1 here has "ticks" not "inverted commas"  ]

This is the problem.  They should be inverted commas.  Ticks tell the 
shell to treat the value as a command and replace it with the output of 
that command.  Hence the '"u:w$": command not found' -- it is trying to 
execute the value, and there is no such command.

> also why a "space" after "$" in "PS1"?

Remove it and find out!  (You'll notice it gets a bit harder to read the 
command line...)

M.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to