[klibc] [PATCH] Escape DHCP options written to /tmp/net-$DEVCICE.conf

H. Peter Anvin hpa at zytor.com
Thu Apr 21 08:27:04 PDT 2011

On 04/21/2011 07:39 AM, Ulrich Dangel wrote:
> * maximilian attems wrote [21.04.11 16:05]:
> Hi,
>> "There is actually a much better way to escape shell variables, a trick I
>> learned from git: Always start with a single quote ('), then leave all
>> characters except ' and ! unchanged.  For those two characters, emit the
>> sequence '\'' or '\!' Including the single quotes" -hpa
> Why escape !? There is AFAIK no history expansion within single quotes.

Not for bash, but if someone uses a csh derivative, there is.


H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.

More information about the klibc mailing list