From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7383 invoked from network); 29 Dec 2021 17:04:44 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 29 Dec 2021 17:04:44 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 405649CF27; Thu, 30 Dec 2021 03:04:42 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 1A64D9CEF3; Thu, 30 Dec 2021 03:04:29 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ccc.com header.i=@ccc.com header.b="FSVCWqMP"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 81E779CEF3; Thu, 30 Dec 2021 03:04:27 +1000 (AEST) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by minnie.tuhs.org (Postfix) with ESMTPS id EA23A9CEA9 for ; Thu, 30 Dec 2021 03:04:26 +1000 (AEST) Received: by mail-qv1-f48.google.com with SMTP id kk22so19799711qvb.0 for ; Wed, 29 Dec 2021 09:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lWoZOmWU91WZEYGN+hlQZd3ahYyn+nKl/NY90hBUBHY=; b=FSVCWqMPHCvIY5ZeSHvAZ25rAEZ2AMpBAEupYCTCTBw0HBwQdBQ/yibZuhZhJBh8J7 GPaeRzm2AvaGmU1zvjlouFm3JL2sozfXhIhL1TO866HC9pY1LZo/XCDJKOBv6zWLonv2 +j1Bfw+OfEkw9fs+IMHKKbRUpsUcvkOfOyPQ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lWoZOmWU91WZEYGN+hlQZd3ahYyn+nKl/NY90hBUBHY=; b=QR762f/vFvre0L0xlYprUxEtDzK53uj00SKV5u9jMvIPa2ga6HBhA2MmLg43TBWq3D ds8KkS4NS2ybtDtFB7m52UVfH2nNw8hcsP57WIQrXWoeGlXA0DL/QgIpt29xjFcEW0H+ TC8PxsYyPNrOQkfgvcT0cUyPLBmbF/Xc8jZ75AkJfC4JzjLwqe8PtlDvRvuxak1baRA+ Ypja8fe5BPLI9EILbAhhnPORcqXqUdbDNK7XBGUAJEQYS7yVo2R4HJpx8FJmz1WKYVgo EUC6AkHOfNUmZu55xkNKft1+EJeYuiLKIxn1WM9XCPOkemF1rgQCYEy8AQ1vK9v1wMpN Oq9Q== X-Gm-Message-State: AOAM532Ll360WHRyhWXv1CsX8wLCbwW+Oepbv5GIIRt+UCZcXOliFLDk 4qSnK5RTF5vO6ZeyNubxvbbCB9lUGenrqRG8SAQEo53tNFpeDQ== X-Google-Smtp-Source: ABdhPJyyXS3/9y35ypd7NVVWJyCBoobWCz2TTNQS/n2cBNpb3ve8XICaHhRtPf5Zatd8lq7ABEDmmoJAeVmVgYSEXD4= X-Received: by 2002:a0c:beca:: with SMTP id f10mr24313682qvj.97.1640797465887; Wed, 29 Dec 2021 09:04:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Clem Cole Date: Wed, 29 Dec 2021 12:04:00 -0500 Message-ID: To: Bakul Shah Content-Type: multipart/alternative; boundary="0000000000001a6ad705d44bee88" Subject: Re: [TUHS] moving directories in svr2 X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000001a6ad705d44bee88 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 29, 2021 at 11:59 AM Bakul Shah wrote: > To expand on this a bit, the =E2=80=9Ccd ..=E2=80=9D case can be handled = by not storing a > .. > link in a dir. in the first place! Store the $PWD path in the u struct. > Then > cd .. would simply lop off the last component, if one exists. Thus .. tak= es > you back only on the path you used! This also takes care of the issue wit= h > symlinks (& does what csh did in user code). Which is exactly the problem ... Your solution works as a runtime fix, sometimes. It's hardly sufficient and why I hate symlinks thank you. --0000000000001a6ad705d44bee88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Dec 29, 2021 at 11:5= 9 AM Bakul Shah <bakul@iitbombay.= org> wrote:
To expand on this a bit, the = =E2=80=9Ccd ..=E2=80=9D case can be handled by not storing a ..
link in a dir. in the first place! Store the $PWD path in the u struct. The= n
cd .. would simply lop off the last component, if one exists. Thus .. takes=
you back only on the path you used! This also takes care of the issue with<= br> symlinks (& does what csh did in user code).
Which is ex= actly the problem =C2=A0... =C2=A0 Your solution works as a runtime fix, so= metimes.=C2=A0 It's hardly sufficient and why I hate=C2=A0symlinks than= k you.

--0000000000001a6ad705d44bee88--