| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| In-Reply-To: | <4AE1FA28.20105@gmail.com> |
| References: | <558689 DOT 43687 DOT qm AT web30801 DOT mail DOT mud DOT yahoo DOT com> <4AE1FA28 DOT 20105 AT gmail DOT com> |
| Date: | Fri, 23 Oct 2009 14:55:24 -0500 |
| Message-ID: | <4a89b8680910231255j1a5fe335t72d7d57968f7a583@mail.gmail.com> |
| Subject: | Re: bash 3.2.49(23): when I start a bash window, $HOME is the DOS value rather than /home/lwv27 |
| From: | paul DOT hermeneutic AT gmail DOT com |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Fri, Oct 23, 2009 at 13:47, Dave Korn
<dave DOT korn DOT cygwin AT googlemail DOT com> wrote:
> =C2=A0The home dir won't just appear when you update mkpasswd; you have t=
o start a
> new shell, when the /etc/profile startup script notices your home dir set=
ting
> doesn't exist it'll kick of the creation process for you.
>
> =C2=A0For the full explanation, see:
> http://cygwin.com/1.7/faq/faq.setup.html#faq.setup.home
Larry:
Dave is right. Creating a new shell is a much better way to get the
home directory created. Here is an excerpt from /etc./profile.
50 # If the home directory doesn't exist, create it.
51 if [ ! -d "${HOME}" ]; then
52 mkdir -p "${HOME}"
53 echo "Copying skeleton files."
54 echo "These files are for the user to personalise"
55 echo "their cygwin experience."
56 echo
57 echo "These will never be overwritten."
58 echo
59 cd /etc/skel
60 /bin/find . -type f | while read f; do
61 fDest=3D`echo ${f} | sed -e 's/^\.//g'`
62 if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then
63 /usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}"
64 fi
65 done
66 fi
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |