kre notes that "echo -n" is superfluous when creating a zero length file

This commit is contained in:
lukem 2001-04-29 23:57:25 +00:00
parent 2b27ac7a99
commit 96612eac97
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: accounting,v 1.5 2001/04/25 23:20:15 lukem Exp $
# $NetBSD: accounting,v 1.6 2001/04/29 23:57:25 lukem Exp $
#
# PROVIDE: accounting
@ -19,7 +19,7 @@ accounting_start()
{
if [ ! -f ${accounting_file} ]; then
echo "Creating accounting file ${accounting_file}"
( umask 022 ; echo -n > ${accounting_file} )
( umask 022 ; > ${accounting_file} )
fi
echo "Turning on accounting."
${accounting_command} ${accounting_file}

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: mountd,v 1.8 2001/04/25 23:23:37 lukem Exp $
# $NetBSD: mountd,v 1.9 2001/04/29 23:57:25 lukem Exp $
#
# PROVIDE: mountd
@ -18,7 +18,7 @@ extra_commands="reload"
mountd_precmd()
{
rm -f /var/db/mountdtab
( umask 022 ; echo -n > /var/db/mountdtab )
( umask 022 ; > /var/db/mountdtab )
return 0
}