bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extrange behavior


From: Jordi Prats
Subject: Extrange behavior
Date: Tue, 16 Jan 2007 20:10:32 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060710)

Hi all,
I found a extrange behavior on bash in several machines:

address@hidden ~ $
address@hidden ~ $ cd //
address@hidden // $ pwd
//
address@hidden // $ echo $PWD
//
address@hidden // $ /bin/pwd
/
address@hidden // $ 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 · address@hidden
......................................................................
pgp:0x5D0D1321
......................................................................




reply via email to

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