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

~/.bashrc problem



Hi,

I have a problem with a function in my ~/.bashrc

function header {
    wget -O /dev/null -S '$1'
}

I wrote it in order to shorten my operation of ``wget -O /dev/null -S
'http://what.ever/' '''. But I cannot get it working the way I want.
It seems that bash strips off the single quotes off $1 and I want them
literally in the command line shown as the above. Can I make a work
around? Many thank!

Best regards,
Kuang He



Reply to: