Afficher un message
Vieux 25/08/2006, 15h37   #9
Jon LaBadie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Posix sucks, Linux sucks, I want my compatibility back

Ben wrote:
> George Fletcher wrote:
>> Gold ol' Linux, bad ol' Posix. This time FC5 has broken my shell
>> scripts by redefining the flags for the 'tail' command. Most notably,
>> by deleting the second most used flag '+#', used to concatenate a file
>> beginning at line #.
>>

>
> I couldn't believe this when I read it so I went and checked my system
> (yes...I'm using FC5, please hold your flames till after the speech) and
> sure enough it's true. I can't believe this. I use this kind of thing in
> scripting all the time never believing I'd have to worry about it going
> away on certain platforms. Can anyone suggest a good way to obtain the
> same behavior with another built in command? All I can think of at the
> moment is:
>
> awk 'NR>=#' file
>
> As a side note. If I want to get away from FC5 (yes...this issue is
> enough to dishearten me) can anyone recommend a flavor that wouldn't put
> me into culture shock. I'm not looking for a distro war here, just
> genuinely would like to know something that's similar to FC (if that
> even makes sense) but maybe more Posix. I've never used any other distro
> other than FC. While I'm very familiar with FC, I can't say what my
> familiarity with linux in general is due this limited experience. I do
> my own sysadmin at home on this linux box though and I don't use GUI's
> for any sysadmin, I prefer konsole (xterm) and vi. Thanks.
>


Problem is, with respect to FC5's tail, it is POSIX.

Assuming my reading of the man page at opengroup is correct:

http://www.opengroup.org/onlinepubs/...ties/tail.html

Neither +# nor -# is officially sanctioned.

To get the same affect you need a -n option before the number.

Bleech!!

  Réponse avec citation
 
Page generated in 0,05573 seconds with 9 queries