Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-02 Thread Robert Nichols
On 3/1/22 7:07 PM, Gordon Messmer wrote: On 3/1/22 15:36, Robert Nichols wrote: "${cmdline[@]}" The problem there is that the last line is going to get interpreted by a shell before anything is executed, so you now have to escape characters that are special to the shell within a quoted

Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Gordon Messmer
On 3/1/22 15:36, Robert Nichols wrote: "${cmdline[@]}" The problem there is that the last line is going to get interpreted by a shell before anything is executed, so you now have to escape characters that are special to the shell within a quoted string. This is unlike the compiled

Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Robert Nichols
On 3/1/22 3:46 PM, Gordon Messmer wrote: On 3/1/22 10:29, Gordon Messmer wrote: Chris Schanzle mentioned off-list that a tab character had been replaced with spaces (I *knew* that should have been an attached file, shame on me).  He also suggested an improvement that removes the tab character,

Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Gordon Messmer
On 3/1/22 10:29, Gordon Messmer wrote: Chris Schanzle mentioned off-list that a tab character had been replaced with spaces (I *knew* that should have been an attached file, shame on me).  He also suggested an improvement that removes the tab character, so here's a second try. Or not? 

Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Gordon Messmer
On 3/1/22 08:52, Gordon Messmer wrote: If you prefer a version that you don't need a C compiler to use, here's a pure bash implementation: Chris Schanzle mentioned off-list that a tab character had been replaced with spaces (I *knew* that should have been an attached file, shame on me). 

Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Gordon Messmer
On 3/1/22 05:53, Robert Nichols wrote: It turns out that particular wheel is best resurrected from the fstab-decode.c file in an old initscripts source package. The encoding is nonstandard, and the above perl code would not handle it correctly. It's pretty close.  It won't handle double

Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Robert Nichols
On 2/28/22 8:46 AM, Robert Nichols wrote: On 2/28/22 1:22 AM, cen...@niob.at wrote: Am 28.02.22 um 05:45 schrieb Robert Nichols: On 2/27/22 12:26 PM, cen...@niob.at wrote: Am 27.02.22 um 04:33 schrieb Robert Nichols: Does anything for CentOS 8 provide the function of the fstab-decode

Re: [CentOS] Need fstab-decode for CentOS 8

2022-02-28 Thread Robert Nichols
On 2/28/22 1:22 AM, cen...@niob.at wrote: Am 28.02.22 um 05:45 schrieb Robert Nichols: On 2/27/22 12:26 PM, cen...@niob.at wrote: Am 27.02.22 um 04:33 schrieb Robert Nichols: Does anything for CentOS 8 provide the function of the fstab-decode utility? Entries in /proc/mounts and /etc/fstab

Re: [CentOS] Need fstab-decode for CentOS 8

2022-02-27 Thread centos
Am 28.02.22 um 05:45 schrieb Robert Nichols: On 2/27/22 12:26 PM, cen...@niob.at wrote: Am 27.02.22 um 04:33 schrieb Robert Nichols: Does anything for CentOS 8 provide the function of the fstab-decode utility? Entries in /proc/mounts and /etc/fstab can have escape sequences for certain

Re: [CentOS] Need fstab-decode for CentOS 8

2022-02-27 Thread Robert Nichols
On 2/27/22 12:26 PM, cen...@niob.at wrote: Am 27.02.22 um 04:33 schrieb Robert Nichols: Does anything for CentOS 8 provide the function of the fstab-decode utility? Entries in /proc/mounts and /etc/fstab can have escape sequences for certain special characters, and I need to decode that.

Re: [CentOS] Need fstab-decode for CentOS 8

2022-02-27 Thread centos
Am 27.02.22 um 04:33 schrieb Robert Nichols: Does anything for CentOS 8 provide the function of the fstab-decode utility? Entries in /proc/mounts and /etc/fstab can have escape sequences for certain special characters, and I need to decode that. Preface: Never heard of fstab-decode before.

[CentOS] Need fstab-decode for CentOS 8

2022-02-26 Thread Robert Nichols
Does anything for CentOS 8 provide the function of the fstab-decode utility? Entries in /proc/mounts and /etc/fstab can have escape sequences for certain special characters, and I need to decode that. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete