From 4cc0d144667a6feaf1e9f04f4b0c7920497b86a8 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 18 Feb 2017 02:37:57 +0000 Subject: [PATCH] exclude PATH manipulation if we guess at OS/2 --- dot.mkshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index ef1c742..9f55268 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -1,5 +1,5 @@ # $Id$ -# $MirOS: src/bin/mksh/dot.mkshrc,v 1.109 2017/02/18 02:33:11 tg Exp $ +# $MirOS: src/bin/mksh/dot.mkshrc,v 1.110 2017/02/18 02:37:57 tg Exp $ #- # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013, 2014, 2015, 2016, 2017 @@ -586,9 +586,8 @@ function enable { \: place customisations below this line -for p in ~/.etc/bin ~/bin; do +[[ $PATH = *\;?:\\* ]] || for p in ~/.etc/bin ~/bin; do [[ -d $p/. ]] || \continue - #XXX OS/2 [[ :$PATH: = *:$p:* ]] || PATH=$p:$PATH done