variable and special chars problem

2007-09-26 Thread _Biff
Hi All; I am having an issue figuring out how to input a value that has special chars and using that var as follows: input value(no quotes): name:phone Script: " location='${USERINFO}' " USERINFO doesnt seem to be formatted correctly due to the ":" in the input value. any ideas? thanks in

Re: variable and special chars problem

2007-09-26 Thread Bob Proulx
_Biff wrote: > I am having an issue figuring out how to input a value that has special > chars and using that var as follows: > input value(no quotes): > name:phone > Script: > " location='${USERINFO}' " The quotes are part of the actual script? That does not make sense in that particular context

using NUL in scripts

2007-09-26 Thread Mike Frysinger
is it even possible to utilize NUL in scripts ? or does bash just strip it out ? for example, trying to work with binary data: foo=$( new-file the "new-file" will be exactly "binary-file" if all NUL bytes are stripped out or perhaps i want to take an arg list, append a string, and run a command

Re: using NUL in scripts

2007-09-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Mike Frysinger on 9/26/2007 7:04 PM: > is it even possible to utilize NUL in scripts ? or does bash just strip it > out ? for example, trying to work with binary data: > foo=$( echo "${foo}" > new-file > the "new-file" will be exactly "

Re: using NUL in scripts

2007-09-26 Thread Jan Schampera
Mike Frysinger schrieb: > is it even possible to utilize NUL in scripts ? or does bash just strip it > out ? for example, trying to work with binary data: > foo=$( echo "${foo}" > new-file > the "new-file" will be exactly "binary-file" if all NUL bytes are stripped out > > or perhaps i want to

Re: using NUL in scripts

2007-09-26 Thread Mike Frysinger
On Wednesday 26 September 2007, Mike Frysinger wrote: > or perhaps i want to take an arg list, append a string, and run a command > on it ... but i cant pass it straight as it may be too large, so i need to > xargs it ... so i'd do something like: > echo ${@/%.moo/.foo$'\000'} | xargs -0 rm -f > bu