From owner-freebsd-questions@FreeBSD.ORG Fri Jun 15 10:43:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 398BF16A468 for ; Fri, 15 Jun 2007 10:43:03 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from galaxy.systems.pipex.net (galaxy.systems.pipex.net [62.241.162.31]) by mx1.freebsd.org (Postfix) with ESMTP id 0251813C483 for ; Fri, 15 Jun 2007 10:43:02 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by galaxy.systems.pipex.net (Postfix) with ESMTP id 53A42E0007AD; Fri, 15 Jun 2007 11:14:41 +0100 (BST) Message-ID: <46726691.1010309@dial.pipex.com> Date: Fri, 15 Jun 2007 11:14:41 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: Olivier Regnier References: <46724027.4070908@oregnier.net> In-Reply-To: <46724027.4070908@oregnier.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: csh and echo syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 10:43:03 -0000 Olivier Regnier wrote: > I'm running FreeBSD 6.2 and i use for the moment csh. When i test this > command in console > echo -ne "/dev/da0s1\t /mnt/usb\t msdos\t rw,noauto\t 0\t 0" >> > /etc/fstab > > and with a cat /etc/fstab, > i have this : -ne /dev/da0s1\t /mnt/usb\t msdos\t rw,noauto\t 0\t 0 > > The \t is not supported with a echo in csh ? What happened ? I'm not sure that any echo has ever supported special escape chars. Maybe it's some Gnu/Linuxism? /bin/echo does the same as csh echo and the man page mentions no -e flag. Try printf. printf %b "/dev/da0s1\t /mnt/usb\t msdos\t rw,noauto\t 0\t 0" Why aren't you adding a newline? Do your command twice and you have a broken fstab :-( printf %b "/dev/da0s1\t /mnt/usb\t msdos\t rw,noauto\t 0\t 0\n" would, imho, be the right incantation. --Alex