tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Control characters in shell file
@ 2003-01-28 21:54 Smith, Mike R.
  0 siblings, 0 replies; only message in thread
From: Smith, Mike R. @ 2003-01-28 21:54 UTC (permalink / raw)


I have a script to check filesystem space.  I wanted to add a new filesystem to the check so I opened the file with Emacs and copied one section, pasted it, and substituted the new filesytem name in the check area.  I noticed that in Emas there where ^M characters at the end of every line.  After I saved the file and it ran I got error

./filesystem_check[21]: ^M:  not found

Now when I edit using vi I see ^M at the end of the section I copied from and in the section I added.  This should be extremely simple.  Any one know why these characters are showing up in a file where I have never seen them before.  The code should work but I think the ^M is causing a problem.

Version 5.1 pk 5 of Tru64.  Thanks for any help.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-28 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28 21:54 Control characters in shell file Smith, Mike R.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox