[gnu.bash.bug] $@ in bash

skl@ABEL.MATH.UIUC.EDU (Soren Lundsgaard) (09/07/89)

$@ does not work well.

I have a file named "a b" that I want to view.  I have the following function:

	view() {
		less ${1+"$@"}
	}

if I run:

	view "a b"

I get:

	a: No such file or directory
	b: No such file or directory

BASH_VERSION=1.030  (pre-release sent to Dan Grayson at uiucmath).

I have enjoyed shell programming ever since I learned of the ${1+"$@"}
construct on the network a few years ago.  I enjoy bash, and continue
to hope for its good luck and popularity.

skl.