help-bash
[Top][All Lists]
Advanced

[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?



reply via email to

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