bug-bash
[Top][All Lists]
Advanced

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

Possibly surprising alias -p behaviour


From: Doug Kearns
Subject: Possibly surprising alias -p behaviour
Date: Thu, 19 Dec 2002 09:39:21 +1100
User-agent: Mutt/1.4i

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -        +DHAVE_CONFIG_H  -I.  -I.
-I./include -I./lib -D_GNU_SOURCE  -O2 -march=i386 -mcpu=i686
uname output: Linux localhost.localdomain 2.4.18-14 #1 Wed Sep 4
13:35:50 EDT 2002 i686 i686 i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        alias -p with NAMES generates a complete alias list and then
        appends the aliases, specified as NAMES, after this list.
        I would expect 'alias -p NAME1 NAME2' to behave as
        'alias NAME1 NAME2'

Repeat-By:
        bash#2.05b$ alias -p
        alias cp='cp -i'
        alias mv='mv -i'
        alias rm='rm -i'
        alias vi='vim'
        bash#2.05b$ alias -p cp mv
        alias cp='cp -i'
        alias mv='mv -i'
        alias rm='rm -i'
        alias vi='vim'
        alias cp='cp -i'
        alias mv='mv -i'




reply via email to

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