Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"You can't make a program without broken egos."


devel / comp.lang.tcl / Re: Feature Request: file relative <path1> <path2>

SubjectAuthor
* Feature Request: file relative <path1> <path2>Jim Lewis
+- Re: Feature Request: file relative <path1> <path2>Gerald Lester
`- Re: Feature Request: file relative <path1> <path2>briang

1
Feature Request: file relative <path1> <path2>

<1812a566-fa08-46e5-813f-ca0fcf409101n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19875&group=comp.lang.tcl#19875

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:808:b0:6ba:fcfa:368b with SMTP id s8-20020a05620a080800b006bafcfa368bmr16416241qks.616.1661269200532;
Tue, 23 Aug 2022 08:40:00 -0700 (PDT)
X-Received: by 2002:aca:f054:0:b0:345:7285:1147 with SMTP id
o81-20020acaf054000000b0034572851147mr1594931oih.108.1661269200091; Tue, 23
Aug 2022 08:40:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 23 Aug 2022 08:39:59 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=50.45.170.9; posting-account=1KCIgQgAAAAQJJrGC8DwZ5vNFUMQMLDs
NNTP-Posting-Host: 50.45.170.9
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1812a566-fa08-46e5-813f-ca0fcf409101n@googlegroups.com>
Subject: Feature Request: file relative <path1> <path2>
From: usevhdl@gmail.com (Jim Lewis)
Injection-Date: Tue, 23 Aug 2022 15:40:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1723
 by: Jim Lewis - Tue, 23 Aug 2022 15:39 UTC

Issue:
Some of EDA tools crash when there is a space in the path. However, they are ok with relative paths.

So while "file normalize" would be nice but if there is a space in the parent path, then it is a nonstarter. One thing that need to be able to do is compare two relative paths, such as ./flintstone/fred/../pebbles and flintstone/pebbles, and determine they are equivalent.

Feature:
file relative <path1> [<path2>] - return a path to <path1> as the shortest relative path to <path2>. If <path2> is not specified, then return a path to <path1> as the shortest relative path to [pwd].

Maybe this exists somewhere and I just did not find it?

Re: Feature Request: file relative <path1> <path2>

<te2vf2$fg3$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19876&group=comp.lang.tcl#19876

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!1fl8kSRPCmNKQmdyphvv0A.user.46.165.242.75.POSTED!not-for-mail
From: Gerald.Lester@KnG-Consulting.net (Gerald Lester)
Newsgroups: comp.lang.tcl
Subject: Re: Feature Request: file relative <path1> <path2>
Date: Tue, 23 Aug 2022 11:32:33 -0500
Organization: KnG Consulting, LLC
Message-ID: <te2vf2$fg3$1@gioia.aioe.org>
References: <1812a566-fa08-46e5-813f-ca0fcf409101n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="15875"; posting-host="1fl8kSRPCmNKQmdyphvv0A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Gerald Lester - Tue, 23 Aug 2022 16:32 UTC

On 8/23/22 10:39, Jim Lewis wrote:
> Issue:
> Some of EDA tools crash when there is a space in the path. However, they are ok with relative paths.
>
> So while "file normalize" would be nice but if there is a space in the parent path, then it is a nonstarter. One thing that need to be able to do is compare two relative paths, such as ./flintstone/fred/../pebbles and flintstone/pebbles, and determine they are equivalent.
>
> Feature:
> file relative <path1> [<path2>] - return a path to <path1> as the shortest relative path to <path2>. If <path2> is not specified, then return a path to <path1> as the shortest relative path to [pwd].
>
> Maybe this exists somewhere and I just did not find it?

From TclLib I think you want: ::fileutil::relative base dst

See:
https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/fileutil/fileutil.md#27

--
+----------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email: Gerald.Lester@kng-consulting.net |
+----------------------------------------------------------------------+

Re: Feature Request: file relative <path1> <path2>

<3825860b-b025-4c7e-8945-adacdd2598afn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19905&group=comp.lang.tcl#19905

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1ba4:b0:344:57a4:7f4c with SMTP id bp36-20020a05622a1ba400b0034457a47f4cmr21738498qtb.146.1661290552164;
Tue, 23 Aug 2022 14:35:52 -0700 (PDT)
X-Received: by 2002:a05:6808:1294:b0:344:9e65:915e with SMTP id
a20-20020a056808129400b003449e65915emr2070828oiw.251.1661290551900; Tue, 23
Aug 2022 14:35:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 23 Aug 2022 14:35:51 -0700 (PDT)
In-Reply-To: <1812a566-fa08-46e5-813f-ca0fcf409101n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=50.53.75.154; posting-account=f4QznQoAAAAjupLEpV87s_G-96g1Io1w
NNTP-Posting-Host: 50.53.75.154
References: <1812a566-fa08-46e5-813f-ca0fcf409101n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3825860b-b025-4c7e-8945-adacdd2598afn@googlegroups.com>
Subject: Re: Feature Request: file relative <path1> <path2>
From: bgriffinfortytwo@gmail.com (briang)
Injection-Date: Tue, 23 Aug 2022 21:35:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1471
 by: briang - Tue, 23 Aug 2022 21:35 UTC

On Tuesday, August 23, 2022 at 8:40:02 AM UTC-7, use...@gmail.com wrote:
> Issue:
> Some of EDA tools crash when there is a space in the path. However, they are ok with relative paths.

I hope you are reporting these errors to the EDA vendors! They should be fixing these bugs!!

(been there, done that)
-Brian


devel / comp.lang.tcl / Re: Feature Request: file relative <path1> <path2>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor