putting something into single quotes in a bash script

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

 



What is the difference in a bash script when one places something between 
single quotes:

- using the apostrophe, '
- using the accent grave, `

?

Eg.,

ps -fu 'whoami'
ps -fu `whoami`

They produce entirely different results.

There are many other places where one might wish to put a command, variable, 
etc., into single quotes, so, which type of single quote sahould be used and 
what is the diffence between the two?

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux