Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2004 03:28:54 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        des@des.no
Subject:   Re: cvs commit: src/share/examples/diskless clone_root
Message-ID:  <20040924032853.GA94679@FreeBSD.org>
In-Reply-To: <20040923.133811.98093041.imp@bsdimp.com>
References:  <20040923120543.B72856@xorpc.icir.org> <20040923191538.GG25699@odin.ac.hmc.edu> <xzpsm98vl6a.fsf@dwp.des.no> <20040923.133811.98093041.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 23, 2004 at 01:38:11PM -0600, M. Warner Losh wrote:
> In message: <xzpsm98vl6a.fsf@dwp.des.no>
>             des@des.no (Dag-Erling Sm?rgrav) writes:
> : You can easily implement 'touch' with sh and test:
> : 
> : touch() {
> :     /bin/test -e "$1" || :>"$1"
> : }
> 
> doesn't
> 	cat /dev/null >> $1
> do the same thing?

or even echo -n >> $1

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040924032853.GA94679>