From owner-freebsd-questions@FreeBSD.ORG Mon May 4 09:40:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18C9D106566C for ; Mon, 4 May 2009 09:40:18 +0000 (UTC) (envelope-from mr.tapac@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id C2D718FC0A for ; Mon, 4 May 2009 09:40:17 +0000 (UTC) (envelope-from mr.tapac@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so2817382qwe.7 for ; Mon, 04 May 2009 02:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=agaO0i85nGAWKZW27tPQqPOLdYqmnzSmrz1qyEVnzjk=; b=YT0hGF/lTgACWF8jh2okm7gcH4Yk22auAhTCHLGWgLNjOLRi8yzgciH3o6h/zNhhKe tQ3D5HZ6jK3mX1VmlEyx0XpcdCce8ReKBvyrAKb2HcwrdcQQ41AAJJzphHn6sjcMDuD4 ONumKZPJAozxfOLjZ9LvfuPlv6GHpsb0C2hLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Wxawa8ZKvrXUBq5/e2QFnXln7z3DSRX+mfV3rQYWk4r2SSmvJiLZZRGEgY6sPVx0Lf crjk57WRPRkWF2eNgryj7VAIvgdtUTWjI8OcdlCjXvxG5kovwhmQEbOoCr+sr5TqgY/0 Bxk8m6WqKKzf7sNQV7Tg0QuuwxKmvOYpsXM3U= MIME-Version: 1.0 Received: by 10.220.72.134 with SMTP id m6mr8911604vcj.63.1241430017129; Mon, 04 May 2009 02:40:17 -0700 (PDT) In-Reply-To: <20090504090804.GA66641@ei.bzerk.org> References: <49FCA2C9.4060307@videotron.ca> <20090502230627.71ef7124.freebsd@edvax.de> <20090504090804.GA66641@ei.bzerk.org> Date: Mon, 4 May 2009 16:40:17 +0700 Message-ID: <3b7dc6d0905040240t1a67c8e5s55b9450dc97c952c@mail.gmail.com> From: Alexander Tarasov To: Ruben de Groot , Polytropon , PJ , freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: lost+found 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: Mon, 04 May 2009 09:40:18 -0000 "#" - is a comment.. in bash "cd" without dirname always return you to a home-directory.. "cd -" returns you to previous location, for example.. 2009/5/4 Ruben de Groot > On Sat, May 02, 2009 at 11:06:27PM +0200, Polytropon typed: > > On Sat, 02 May 2009 15:45:13 -0400, PJ wrote: > > > [~]# cd /tmp/lost+found/#123456 > > > [/tmp/lost+found/#123456]# ls > > > > Okay, it's empty. > > > > > > > > > [/tmp/lost+found/#123456]# cd .. > > > > Strange, why does .. lead you from /tmp/lost+found/#123456 > > to /tmp/lost+found/#123456, just as if cd wasn't executed? > > > > > > > > > [/tmp/lost+found/#123456]# cd #123456 this returns and empty directory) > > > > Does /tmp/lost+found/#123456 contain another #123456? And > > why does this cd lead you to your (root's) home directory? > > Probably because the # is interpreted as comment. I can reproduce this > in a bourne shell; not in (t)csh. > > Ruben > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >