Bug 5039 - /opt/thinlinc/libexec/functions: line 26: seq: command not found
Summary: /opt/thinlinc/libexec/functions: line 26: seq: command not found
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Solaris
: P2 Normal
Target Milestone: 4.2.0
Assignee: Pierre Ossman
URL:
Keywords: derfian_tester, prosaic
Depends on:
Blocks:
 
Reported: 2014-03-25 15:47 CET by Karl Mikaelsson
Modified: 2014-04-09 15:04 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Karl Mikaelsson cendio 2014-03-25 15:47:30 CET
The wait_for_wm function from libexec/functions fails on Solaris where seq is not present.

> wait_for_wm()
> {
>     for i in `seq 30`; do
>         if has_ewmh_wm; then
>             return 0
>         fi
> 
>         sleep 1
>     done
>     return 1
> }

Suggested solution: Use the bash construct {0..30} rather than invoking `seq 30`.
Comment 1 Pierre Ossman cendio 2014-04-01 17:09:02 CEST
Fixed in r28774.
Comment 2 Karl Mikaelsson cendio 2014-04-09 15:04:34 CEST
No errors on session startup with build 4311.

Note You need to log in before you can comment on or make changes to this bug.