[Samba] tiny odd script thing
Bob of Donelson Trophy
bob at donelsontrophy.net
Sat Jan 10 07:20:30 MST 2015
<p>I have been reviewing Louis' script
(4-setup-sernet-samba4-MEMBER-wheezy.sh) and within the following line
(line 310) is an odd character combination at the end of the line:</p>
<p style="padding-left: 30px;"><span style="font-family: book
antiqua,palatino;">if [ ${SMBPRINTING} = no ]; then</span><br /><span
style="font-family: book antiqua,palatino;">echo "==========Disable
Printing ==============================="</span><br /><span
style="font-family: book antiqua,palatino;">sed -i '49a\\n #
disable printing completely\n load printers =
no\n printing = bsd\n printcap name =
/dev/null\n disable spoolss = yes\n'^M</span> <span
style="text-decoration:
underline;"><em><strong><<<<<<------
what?</strong></em></span><br /><span style="font-family: book
antiqua,palatino;"> /etc/samba/smb.conf</span><br /><span
style="font-family: book antiqua,palatino;">fi</span></p>
<p>I use vi for my editor (Debian 7.7.0) and I noticed that this "^M"
character was the only colored character in the entire script. This
character combination (and color) appears twice within the script. Once
listed above and finally at the last line of the script. This character
combo seems odd and <em>maybe it is nothing</em>.</p>
<p>Anyone have any thoughts as to what this character is?</p>
<p>(As I know very little about emac editor, is it an "editor"
instruction?)</p>
<p>And when I 'test' remove the combination, the cursor responds as if
they are a single character even though it appears as two characters. In
other words a single keystroke removes both characters.</p>
<p>Should they be removed from the script?</p>
<p>(I feel bad to raise this question while Louis is on a holiday. Many
of us have been using his scripts for some time now and history
indicates that they are working scripts. And I for one really appreciate
all the work that went into them.)</p>
<div id="_rc_sig">-- <br />
<p> </p>
<hr />
<pre><span style="font-family: andale mono,times; font-size: small;">Bob
Wooden of Donelson Trophy</span>
615.885.2846 (main)
<a title="Donelson Trophy"
href="http://www.donelsontrophy.com">www.donelsontrophy.com</a>
<span>"Everyone deserves an award!!"</span></pre>
</div>
More information about the samba
mailing list