Re: How to overwrite the destination directory by 'cp'?

2010-01-25 Thread Bob Proulx
Peng Yu wrote: > Suppose I have directory a and b, the following command will copy the > content of a to b/a, rather than overwrite the directory 'b' by the > directory 'a'. I'm wondering if there is an option to overwrite 'b'? > > cp -r a b The 'cp' command will always copy source to destination

Re: How to create an empty file?

2010-01-25 Thread Jim Meyering
Mike Frysinger wrote: > On Monday 25 January 2010 12:22:09 Peng Yu wrote: >> 'touch' will not make the file size empty if the file is not empty. I >> don't not want to use 'rm -f' first then touch because I might >> accidentally remove something if I type anything wrong. Could somebody >> let me a

Re: How to create an empty file?

2010-01-25 Thread Mike Frysinger
On Monday 25 January 2010 12:22:09 Peng Yu wrote: > 'touch' will not make the file size empty if the file is not empty. I > don't not want to use 'rm -f' first then touch because I might > accidentally remove something if I type anything wrong. Could somebody > let me a better way to create an empt

How to create an empty file?

2010-01-25 Thread Peng Yu
'touch' will not make the file size empty if the file is not empty. I don't not want to use 'rm -f' first then touch because I might accidentally remove something if I type anything wrong. Could somebody let me a better way to create an empty file?

Re: Incorrect use of USE_XATTR in coreutils-8.4

2010-01-25 Thread Jim Meyering
Pádraig Brady wrote: > On 25/01/10 11:51, Jim Meyering wrote: >> Pádraig Brady wrote: >>> >>> Subject: [PATCH] syntax-check: detect incorrect boolean macro values in >>> config.h >>> >>> * modules/maintainer-makefile (configure.ac): Parameterize the location >>> of config.h. The logic is from Eri

Re: Incorrect use of USE_XATTR in coreutils-8.4

2010-01-25 Thread Pádraig Brady
On 25/01/10 11:51, Jim Meyering wrote: Pádraig Brady wrote: Subject: [PATCH] syntax-check: detect incorrect boolean macro values in config.h * modules/maintainer-makefile (configure.ac): Parameterize the location of config.h. The logic is from Eric Blake and the location indicated by Jim Meye

Re: Incorrect use of USE_XATTR in coreutils-8.4

2010-01-25 Thread Jim Meyering
Pádraig Brady wrote: > On 22/01/10 17:09, Jim Meyering wrote: >> Eric Blake wrote: >>> According to Jim Meyering on 1/22/2010 6:17 AM: However, it'd sure be nice to use something more generic than lib/config.h. IMHO, autoconf should make configure AC_SUBST its currently-internal-on

Re: Incorrect use of USE_XATTR in coreutils-8.4

2010-01-25 Thread Pádraig Brady
On 22/01/10 17:09, Jim Meyering wrote: Eric Blake wrote: According to Jim Meyering on 1/22/2010 6:17 AM: However, it'd sure be nice to use something more generic than lib/config.h. IMHO, autoconf should make configure AC_SUBST its currently-internal-only CONFIG_HEADERS variable. While we wait

Re: [PATCH v2] who --mesg now checks the group of TTY devices

2010-01-25 Thread Jim Meyering
Kamil Dudka wrote: > On Saturday 23 of January 2010 02:43:39 Kamil Dudka wrote: >> On Saturday 23 of January 2010 00:54:44 Kamil Dudka wrote: >> > # ls -l /dev/tty? >> > crw--w. 1 root root 4, 0 2010-01-22 18:48 /dev/tty0 >> > crw--w. 1 root root 4, 1 2010-01-22 18:48 /dev/tty1 >> > crw--w-