> Thanks I found the problem. I use ``cd -'' to go back to the working 
> direktorie,
> but this prints the direktory which is changed to. Can you conform the 
> attached
> patch fixs your bug.
>
> Philipp
> part 2     text/x-diff                267 whatnow2.patch
> diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh
> index 543dbe5..22be353 100755
> --- a/uip/whatnow2.sh
> +++ b/uip/whatnow2.sh
> @@ -75,7 +75,7 @@ get_realpath()
>       filename=`basename "$1"`
>       cd $reldir
>       echo "$PWD/$filename"
> -     cd -
> +     cd $OLDPWD
>  }

Confirm. Fixed.

But I would still like to hear opinions about taking advantage of
`realpath(1)'.

-- 
X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch,
Accept-Languages: eo,ru,en             | at most once every 24 hours. If matter
Accept: text/plain, text/x-diff        | is urgent, you have my phone number.

Reply via email to