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

Re: ~/.bashrc problem

Kuang He wrote:

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


If you use single quote, anything inside it is passed litterally to the program see man bash.


Reply to: