This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: cygwin symlink? bug
> Max, Trevor,
>
> BASH keeps an internal idea of the current working directory. In the
> face of symbolic links, this internal record of the current working
> directory may not be identical to that computed by the "pwd" programs
> traversal-to-root algorithm.
>
> I use this instead of BASH's built-in pwd command:
>
> wd() {
> WD="$(pwd)"
> WDP="$(/bin/pwd)"
> if [ "$WD" != "$WDP" ]; then
> echo "bash: $WD"$'\n'"real: $WDP"
> else
> echo "$WD"
> fi
> }
>
> I use this one if I want to see the Windows form of the current working
> directory, too:
>
> awd() {
> WD="$(pwd)"
> WDP="$(/bin/pwd)"
> if [ "$WD" != "$WDP" ]; then
> echo "bash: $WD"$'\n'"cyg: $WDP"
> else
> echo "cyg: $WD"
> fi
> echo "win: $(cygpath -w -a "$(pwd)")"
> echo "mix: $(cygpath -m -a "$(pwd)")"
> }
>
> Randall Schulz
Thanks Randall, That's something new for my sandbox ;-)
Ando sorry..meant to send to the list not a direct thing :::::::-)
Regards,
Elfyn McBratney
elfyn@exposure.org.uk
www.exposure.org.uk
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/