Michael Havens wrote:
I want to make it easy to get to a certain directory.
Why doesn't it retain $LFS/sources ?
root@debian:~# cat /root/.bash_profile
export LFS=/mnt/lfs
export sources=$LFS/sources
root@debian:~# su - lfs
lfs@debian:~$ cat ~/.bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
export LFS=/mnt/lfs
export sources=$LFS/sources
lfs@debian:~$ echo $
$BASH $COLUMNS $LC_ALL $PS1
$BASHOPTS $COMP_WORDBREAKS $LFS $PS2
$BASHPID $DIRSTACK $LFS_TGT $PS4
$BASH_ALIASES $EUID $LINENO $PWD
$BASH_ARGC $GROUPS $LINES $RANDOM
$BASH_ARGV $HISTCMD $MACHTYPE $SECONDS
$BASH_CMDS $HISTFILE $MAILCHECK $SHELL
$BASH_COMMAND $HISTFILESIZE $OPTERR $SHELLOPTS
$BASH_LINENO $HISTSIZE $OPTIND $SHLVL
$BASH_SOURCE $HOME $OSTYPE $TERM
$BASH_SUBSHELL $HOSTNAME $PATH $UID
$BASH_VERSINFO $HOSTTYPE $PIPESTATUS $_
$BASH_VERSION $IFS $PPID
lfs@debian:~$ echo $
It is unclear what you are trying to to here. Just put
export sources=$LFS/sources
in /home/lfs/.bashrc to set a variable within the chroot.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style