[CentOS] fstab multiple line entries?

Wed Jan 5 21:33:56 UTC 2011
Brunner, Brian T. <BBrunner at gai-tronics.com>

 

> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell
> Sent: Wednesday, January 05, 2011 4:20 PM
> To: centos at centos.org
> Subject: Re: [CentOS] fstab multiple line entries?
> 
> On 1/5/2011 2:58 PM, Brunner, Brian T. wrote:
> >
> >> On Wed, 2011-01-05 at 19:16 +0000, Keith Roberts wrote:
> >>> I'm trying to add a long list of mount options in my fstab,
> >> and break
> >>> the entry over 2 lines, as it goes off screen.
> >>
> >> $ man fstab
> >> /line
> >>
> >> Each filesystem is described on a separate line;
> >
> > This is ambiguous as it stands; many tools understand 'line 
> > continuation' by a '\n' 
> 
> I think it is more common for a '\' at the end of line to 

I did mis-type that, sorry.

> I don't know if fstab is 
> parsed that way.  

Docs are ambiguous on this point.

> But, there is a more basic problem if the editor used to make 
> this change doesn't wrap to the next screen line so you can 
> edit without introducing a newline into the content.  I 
> thought they've all done that for decades.

OP wants to use 1+ lines joined by '\' to be read as one line by
mount(8) et amice so that horizontal scrolling and automagic wrapping
aren't needed.  Multiple lines of wrapped text are an ugly read.
*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**