bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash Feature Proposal


From: Robert Elz
Subject: Re: Bash Feature Proposal
Date: Tue, 10 Feb 2026 01:21:55 +0700

    Date:        Tue, 10 Feb 2026 00:58:17 +0700
    From:        Robert Elz <kre@munnari.OZ.AU>
    Message-ID:  <3315.1770659897@jacaranda.noi.kre.to>

Oops, I forgot:

  | up() {
  |     local i=0
  |     local p=.
  |     
  |     test "$#" -gt 0 || set -- 1
  |
  |     while [ "$i" -lt "$1" ]
  |     do
  |             p=${p}/..
                i=$((i+1))
  |     done
  |
  |     cd "$p"
  | }

It wouldn't work very well without that!

kre





reply via email to

[Prev in Thread] Current Thread [Next in Thread]