Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Confused | 14 comments | Create New Account
Click here to return to the 'Confused' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Confused
Authored by: jasonxz on Jul 22, '02 12:40:42PM

After creating these files in Emacs, how do I save them? I read the man pages for Emacs, but I really couldn't understand how it works.



[ Reply to This | # ]
Confused
Authored by: shepmaster on Jul 22, '02 01:27:57PM

For emacs, you will want to type control-x then control-s to save, then control-x control-c to exit.



[ Reply to This | # ]
Confused
Authored by: timrob on Jul 22, '02 02:24:22PM

I guess I should have put those commands in there.
ctrl-x then ctrl-s saves. ctrl-x then ctrl-c saves and exits.
You could just use pico instead.
Or use BBEdit or whatever makes you happy.
As long as it handles newlines properly, you should be alright.

Tim





[ Reply to This | # ]
BBEdit
Authored by: uurf on Jul 22, '02 05:15:22PM
I did use bbedit, and I got the following upon attempting to run the script:
[localhost:~] user% sudo sh /etc/rc.sysctl
/etc/rc.sysctl: parse error near `;;' [37]
/etc/rc.sysctl: parse error near `)' [38]
/etc/rc.sysctl: parse error near `;;' [55]
/etc/rc.sysctl: parse error near `esac' [56]
/etc/rc.sysctl: parse error near `done' [57]
[localhost:~] user%
this despite having saved linebreaks as "UNIX" wha'appened?

[ Reply to This | # ]