Re: How to protect > and interpret it later on? (w/o using eval)

2011-12-01 Thread Pierre Gaston
On Fri, Dec 2, 2011 at 8:24 AM, Peng Yu wrote: > Hi, > > ~$ cat ../execute.sh > #!/usr/bin/env bash > > echo "$@" > "$@" > > $  ../execute.sh  ls >/tmp/tmp.txt > $ cat /tmp/tmp.txt #I don't want "ls" be in the file > ls > main.sh > > '>' will not work unless eval is used in execute.sh.

How to protect > and interpret it later on? (w/o using eval)

2011-12-01 Thread Peng Yu
Hi, ~$ cat ../execute.sh #!/usr/bin/env bash echo "$@" "$@" $ ../execute.sh ls >/tmp/tmp.txt $ cat /tmp/tmp.txt #I don't want "ls" be in the file ls main.sh '>' will not work unless eval is used in execute.sh. $ ../execute.sh ls '>' /tmp/tmp.txt ls > /tmp/tmp.txt ls: cannot

Re: Severe memleak in sequence expressions?

2011-12-01 Thread Marc Schiffbauer
* Bob Proulx schrieb am 01.12.11 um 05:34 Uhr: > Marc Schiffbauer wrote: > > Greg Wooledge schrieb: > > > Marc Schiffbauer wrote: > > > > echo {0..1000}>/dev/null > > > > > > > > This makes my system starting to swap as bash will use several GiB of > > > > memory. > > > > > > In my opinion, no

Re: Severe memleak in sequence expressions?

2011-12-01 Thread Marc Schiffbauer
* Chet Ramey schrieb am 01.12.11 um 02:54 Uhr: > That's probably the result of the power-of-two allocation policy in the > bash malloc. When this came up before, I wrote: > > == > That's not a memory leak. Malloc implementations need not release > memory back to the kernel; the bash mall

Typo in HISTORY EXPANSION section

2011-12-01 Thread lhunath
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: darwin11.2.0 Compiler: /Developer/usr/bin/clang Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='darwin11.2.0' -DCONF_MACHTYPE='i386-apple-darwin11.2.0' -DCONF_VENDOR='apple' -DLOCALED