On 09.08.2011 16:54, Stephane CHAZELAS wrote:
2011-08-09, 09:50(-04), Steven W. Orr:
[...]
*) To remove the trailing slashes, instead of

              while [[ $file == */ ]]
              do
                  file=${file%/}
              done

              file=${file##*/}    # file name

just say
            file="${file%${file##*[!/]}}"
[...]

            file=${file%"${file##*[!/]}"}

Same problem with "/" being changed to "" though.

This has been fixed. Also getlink() now outputs paths always in normalized form. Any feedback appreciated!

Bernd

--
http://sudrala.de

Reply via email to