Re: bash variables

2011-02-28 Thread Mike McClain
On Sun, Feb 27, 2011 at 10:53:44PM -0600, Boyd Stephen Smith Jr. wrote: > > Bash is not adding quotes.[1] It is failing to remove them. If you really > want to understand what is happening, install the susv2 or susv3 packages > from contrib and read the section "Shell Command Language". Parti

Re: bash variables

2011-02-27 Thread Boyd Stephen Smith Jr.
In <20110228004108.GA3922@playground>, Mike McClain wrote: >On Sun, Feb 27, 2011 at 12:45:27PM -0600, Boyd Stephen Smith Jr. wrote: >> In <20110225222127.GA1996@playground>, Mike McClain wrote: >> >This only bites me once in a while but when it does it can be very >> >frustrating so any hints / tip

Re: bash variables

2011-02-27 Thread Mike McClain
On Sun, Feb 27, 2011 at 12:45:27PM -0600, Boyd Stephen Smith Jr. wrote: > In <20110225222127.GA1996@playground>, Mike McClain wrote: > >This only bites me once in a while but when it does it can be very > >frustrating so any hints / tips are welcome. > > FOO="stuff 'with' qu\"otes" > echo $FOO > e

Re: bash variables

2011-02-27 Thread Boyd Stephen Smith Jr.
In <20110225222127.GA1996@playground>, Mike McClain wrote: >This only bites me once in a while but when it does it can be very >frustrating so any hints / tips are welcome. FOO="stuff 'with' qu\"otes" echo $FOO echo stuff 'with' qu\"otes Yes, quote removal happens after parameter expansion, but i

Re: bash variables

2011-02-27 Thread Mart Frauenlob
On 25.02.2011 23:21, Mike McClain wrote: I occasionally have problems with bash variables, for instance the following command lists (along with everything else) 2 *.deb files in /home/mike/ root@/deb40a:~> FIND1="-maxdepth 1 -type f -print -name '*'"; \ GREP="-v '\.\(deb\|gz\|tgz\|bz2\|t

Re: bash variables

2011-02-27 Thread Teemu Likonen
* 2011-02-27 09:12 (+0200), Teemu Likonen wrote: > * 2011-02-25 14:21 (-0800), Mike McClain wrote: >> root@/deb40a:~> FIND1="-maxdepth 1 -type f -print -name '*'"; \ >> GREP="-v '\.\(deb\|gz\|tgz\|bz2\|tbz\|zip\)$'"; \ >> find /home/mike/ $FIND1 | grep $GREP ; > Try removing the single q

Re: bash variables

2011-02-26 Thread Teemu Likonen
* 2011-02-25 14:21 (-0800), Mike McClain wrote: > I occasionally have problems with bash variables, for instance the > following command lists (along with everything else) 2 *.deb files in > /home/mike/ > > root@/deb40a:~> FIND1="-maxdepth 1 -type f -print -name '*'"; \ > GREP="-v '\.\(deb\|gz

Re: bash variables

2011-02-26 Thread Mike McClain
On Sat, Feb 26, 2011 at 03:18:43PM +, T o n g wrote: > On Fri, 25 Feb 2011 14:21:27 -0800, Mike McClain wrote: > > > the following command lists (along with everything else) > > 2 *.deb files in /home/mike/ > > > > root@/deb40a:~> FIND1="-maxdepth 1 -type f -print -name '*'"; \ > > GREP=

Re: bash variables

2011-02-26 Thread T o n g
On Fri, 25 Feb 2011 14:21:27 -0800, Mike McClain wrote: > the following command lists (along with everything else) > 2 *.deb files in /home/mike/ > > root@/deb40a:~> FIND1="-maxdepth 1 -type f -print -name '*'"; \ > GREP="-v '\.\(deb\|gz\|tgz\|bz2\|tbz\|zip\)$'"; \ find /home/mike/ > $FI

Re: bash variables

2011-02-25 Thread Javier Barroso
Hi Mike, Please add OT to subject ;-) On Fri, Feb 25, 2011 at 11:21 PM, Mike McClain wrote: > I occasionally have problems with bash variables, for instance > the following command lists (along with everything else) >  2 *.deb files in /home/mike/ > > root@/deb40a:~> FIND1="-maxdepth 1 -type f -