[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Best way to remove trailing '/' from a path?
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Best way to remove trailing '/' from a path? |
Date: |
Mon, 13 Apr 2015 08:20:29 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, Apr 10, 2015 at 11:00:58PM -0500, Peng Yu wrote:
> I should have said to remove all trailing slashes.
I fail to see why ${var%%+(/)} is not the correct answer to that.
Yes, it converts /////// to an empty string, but isn't that the
desired outcome?
Re: [Help-bash] Best way to remove trailing '/' from a path?, Stephane Chazelas, 2015/04/20
Re: [Help-bash] Best way to remove trailing '/' from a path?, Stephane Chazelas, 2015/04/20
Re: [Help-bash] Best way to remove trailing '/' from a path?, Chris F.A. Johnson, 2015/04/20
Re: [Help-bash] Best way to remove trailing '/' from a path?, Eric Blake, 2015/04/21