bug-bash
[Top][All Lists]
Advanced

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

Re: i want HARD SPACES for dealing with function passing...


From: Paul Jarc
Subject: Re: i want HARD SPACES for dealing with function passing...
Date: Tue, 21 Aug 2001 12:51:41 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

stig@hackvan.com wrote:
> touch foo\ bar
> passargs() { echo "$@"; }
> ls $(passargs foo\ bar)

You're not quoting the expansion of passargs; therefore, it undergoes
word splitting.  Use this instead: ls "$(passargs foo\ bar)"


paul



reply via email to

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