[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shell function redirections in "type" output
From: |
Paul Jarc |
Subject: |
shell function redirections in "type" output |
Date: |
Fri, 09 Jan 2004 12:14:39 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
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/package/misc/spf/bash-2.05b-4/spf/readline/include -I. -I./include -I./lib
-I/nil -I/package/misc/spf/bash-2.05b-4/spf/readline/include
-I/package/misc/spf/bash-2.05b-4/spf/ncurses/include -O2 -pipe
uname output: Linux multivac.cwru.edu 2.4.23 #1 SMP Mon Dec 1 17:11:18 EST 2003
i686 unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Not necessarily a bug... this is a little odd, but semantically
equivalent:
$ foo() { : &> /dev/null; }
$ type -a foo
foo is a function
foo ()
{
: >&/dev/null
}
This is even odder, and, surprisingly, happens to also be semantically
equivalent, though I wonder whether it should be:
$ foo() { : >& /dev/null; }
$ type -a foo
foo is a function
foo ()
{
: 1>&/dev/null
}
paul
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- shell function redirections in "type" output,
Paul Jarc <=