bug-bash
[Top][All Lists]
Advanced

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

Re: Bash messes up spaces in command line agruments.


From: Dave B
Subject: Re: Bash messes up spaces in command line agruments.
Date: Wed, 07 May 2008 15:00:34 +0200

On Wednesday 7 May 2008 14:54, Dave B wrote:

> $ ./startup '     some       words          '
> 1
> 0 |./startup|
> 0 |./startup|
> 1 |    some       words          |
> 1 |     some       words          |
> # '     some       words          '

This should have been

$ ./startup '     some       words          '
1
0 |./startup|
0 |./startup|
1 |     some       words          |
1 |    some       words          |
# '     some       words          '

ie, ${!index} works fine, while eval loses a space.

-- 
D.


reply via email to

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