Re: Bash Feature Proposal

Robert Elz <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <[email protected]>
    Date:        Tue, 10 Feb 2026 00:58:17 +0700
    From:        Robert Elz <[email protected]>
    Message-ID:  <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.