Hi all,
I found a extrange behavior on bash in several machines:
rut@a64 ~ $
rut@a64 ~ $ cd //
rut@a64 // $ pwd
//
rut@a64 // $ echo $PWD
//
rut@a64 // $ /bin/pwd
/
rut@a64 // $ bash --version
GNU bash, version 3.00.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
This also happens on a 3.00.15, 3.1.14, 2.05b.0 on Linux and on 2.05b.0
on MacOSX.
I supose pwd it's a builtin command (as it's cd), so it just prints
$PWD. Is this a bug or a feature? I just found this because of a
misstyping, I'm asking this just for curiosity.
Thank you!
--
......................................................................
__
/ / Jordi Prats Català
C E / S / C A Systems Department
/_/ Centre de Supercomputació de Catalunya
Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
T. 93 205 6464 · F. 93 205 6979 · jprats@cesca.es
......................................................................
pgp:0x5D0D1321
......................................................................