autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] remove config.status race condition


From: Akim Demaille
Subject: Re: [patch] remove config.status race condition
Date: 25 Feb 2001 21:30:28 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Akim Demaille <address@hidden> writes:

> 
>   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
>     ln $srcdir/$ac_source $ac_dest ||
> 
> ln -s is very different from ln and cp wrt its arguments.
> 
> Jim had once to teach me this because I meant to do a patch similar to
> yours :)
> 
> If you want the same code, basically you need to first cd in the dest
> rep.

Hm, sorry, s/rep/dir/.

This should demonstrate what I mean:

/tmp % mkdir tim                                                 nostromo 21:28
/tmp % cd tim                                                    nostromo 21:28
/tmp/tim % mkdir srcdir builddir                                 nostromo 21:28
/tmp/tim % echo srcdirdata>srcdir/data                           nostromo 21:28
/tmp/tim % ln -s srcdir/data builddir                            nostromo 21:29
/tmp/tim % cat builddir/data                                     nostromo 21:29
cat: builddir/data: Aucun fichier ou répertoire de ce type
/tmp/tim % ls -l builddir/data                                   nostromo Err 1
lrwxrwxrwx    1 akim     lrde           11 fév 25 21:29 builddir/data -> 
srcdir/data
/tmp/tim % rm builddir/data                                      nostromo 21:29
/tmp/tim % ln srcdir/data builddir                               nostromo 21:30
/tmp/tim % cat builddir/data                                     nostromo 21:30
srcdirdata



reply via email to

[Prev in Thread] Current Thread [Next in Thread]