Bug 894

Summary: improve portability of some shell constructs
Product: Portable OpenSSH Reporter: Colin Watson <cjwatson>
Component: MiscellaneousAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: Other   
OS: Linux   
URL: http://bugs.debian.org/258517
Attachments:
Description Flags
use && rather than test -a none

Description Colin Watson 2004-07-10 22:45:49 AEST
David Weinehall reported in Debian bug #258517 that OpenSSH uses the XSI
extension 'test -a', and some /bin/sh implementations (mostly of the kind
designed for use in small systems) don't like this. The fixes are easy and in
line with other shell code in OpenSSH; I'll attach the patch in a moment.
Comment 1 Colin Watson 2004-07-10 22:46:31 AEST
Created attachment 682 [details]
use && rather than test -a
Comment 2 Darren Tucker 2004-08-30 21:33:21 AEST
Applied, thanks.