Re: Naming convention of bash script filenames

2010-07-11 Thread Chris F.A. Johnson
On Sun, 11 Jul 2010, Peng Yu wrote: > Hi, > > I think that that may not be a unique naming convention for bash > script filenames. But I use the following. > > For an executable bash script I use the suffix .sh. For a bash script > that is only source-able but runnable, I use the suffix .bashrc.

Re: Naming convention of bash script filenames

2010-07-11 Thread Bob Proulx
Peng Yu wrote: > For an executable bash script I use the suffix .sh. For a bash script > that is only source-able but runnable, I use the suffix .bashrc. > > People may use different conventions. I just want to see what most > people use and follow the common practice. Could anybody give me any >

Naming convention of bash script filenames

2010-07-11 Thread Peng Yu
Hi, I think that that may not be a unique naming convention for bash script filenames. But I use the following. For an executable bash script I use the suffix .sh. For a bash script that is only source-able but runnable, I use the suffix .bashrc. People may use different conventions. I just want

Re: Set of characters that are treated specially between a pair of double quotes?

2010-07-11 Thread John Reiser
> Could anybody let me know the complete set of characters that need to > be escaped (prepend with backslash) between a pair of double quotes if > I really want to print the character? RTFM. In particular, the manual page ("man bash") has a succinct section entitled "QUOTING". --

Set of characters that are treated specially between a pair of double quotes?

2010-07-11 Thread Peng Yu
For the character $ is treated specially between a pair of double quotes. echo "$PATH" If I really want to print $, I need to say echo "\$PATH" Could anybody let me know the complete set of characters that need to be escaped (prepend with backslash) between a pair of double quotes if I really w