Re: ssh-copy-id no newline bug

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



"Tom G. Christensen" <tgc@xxxxxxxxxxxxxxx> writes:

> On 22/03/16 08:34, Philip Hands wrote:
>>
>>    [ "`tail -c1 .ssh/authorized_keys 2>/dev/null`" ] && echo > .ssh/authorized_keys ;
>>
>> anyone know of portability issues with that?
>>
>
> On Solaris 10 and older /usr/bin/tail does not understand the -c1 
> syntax, it needs -1c instead.

OK, it seems that tail from coreutils on Debian can deal with -1c as
well -- odd -- is this actually the portable option despite not being in
the manual?

BTW can Solaris 10's tail handle it with a space after the c, thus:

   tail -c 1 

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/    http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,    GERMANY

Attachment: signature.asc
Description: PGP signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux