DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th February 2009
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default CSH 'mch' variable?

In the default .cshrc that comes with NetBSD, there is a variable called 'mch', that is set: set mch = `hostname -s`

I have no idea what that is or for. I have looked through the man pages, google, books, I can't seem to find a reference for it. I notice that the next line is set prompt = "${mch:q}: {\!} ", so is 'mch' a made-up variable name that is only meant to help set the default prompt?
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #2   (View Single Post)  
Old 12th February 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by JMJ_coder View Post
In the default .cshrc that comes with NetBSD, there is a variable called 'mch', that is set: set mch = `hostname -s`

I have no idea what that is or for.
The manpage for hostname(1) states that -s strips off the domain name lefting (presumptively) the machine name -- which I suspect what 'mch' is meant to represent.
Quote:
...so is 'mch' a made-up variable name that is only meant to help set the default prompt?
Most likely so.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python: Use the value of a variable for calling another variable Carpetsmoker Programming 13 5th April 2009 05:53 PM
Using Date variable? cwhitmore FreeBSD General 9 13th August 2008 07:16 AM


All times are GMT. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick