s/sh/bash/ in SC2176 because of posix guarantees.

This commit is contained in:
Vidar Holen 2016-03-19 16:47:55 -07:00
parent c91083354f
commit a5821c3a4d
1 changed files with 1 additions and 1 deletions

View File

@ -1872,7 +1872,7 @@ checkTimedCommand _ = checkUnqualifiedCommand "time" f where
f c args@(_:_) = do f c args@(_:_) = do
let cmd = last args let cmd = last args
when (isPiped cmd) $ when (isPiped cmd) $
warn (getId c) 2176 "'time' is undefined for pipelines. time single stage or sh -c instead." warn (getId c) 2176 "'time' is undefined for pipelines. time single stage or bash -c instead."
when (isSimple cmd == Just False) $ when (isSimple cmd == Just False) $
warn (getId cmd) 2177 "'time' is undefined for compound commands, time sh -c instead." warn (getId cmd) 2177 "'time' is undefined for compound commands, time sh -c instead."
f _ _ = return () f _ _ = return ()