bug-bash
[Top][All Lists]
Advanced

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

pushd does not ignore -option after --


From: Ateeq A Altaf
Subject: pushd does not ignore -option after --
Date: Mon, 14 Nov 2005 22:11:54 -0000

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
uname output: Linux firewall.hydrosoft 2.6.11-1.35_FC3 #1 Mon Jun 13
00:52:08 EDT 2005 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 3.0
Patch Level: 14
Release Status: release

Description:
        pushd should accept dirs beginning with - e.g. "-test-dir-" by using
pushd -- -test-dir-, this does not work:

        [root@firewall ~]# pushd -- -a
        bash: pushd: -a: invalid number
        pushd: usage: pushd [dir | +N | -N] [-n]

Repeat-By:
        mkdir -- "-test-dir-";
        pushd -- -test-dir-






reply via email to

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