Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Soren Lundsgaard
Wed, 06 Sep 1989 20:37
$@ in bash
Author: Soren Lundsgaard
Date: Wed, 06 Sep 1989 20:37
Date: Wed, 06 Sep 1989 20:37
24 lines
886 bytes
886 bytes
$@ 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads