-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page cylc help output #2704
page cylc help output #2704
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works so long as $PAGER
is defined, which it isn't in my current VM. So I guess it isn't universally defined. Can you default to less
(and fall back to more
?)?
bin/cylc
Outdated
@@ -65,6 +65,14 @@ init_cylc() { | |||
} | |||
|
|||
help_util() { | |||
if [[ -z $PAGER ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use this syntax to satisfy set -u
.
if [[ -z "${PAGER:-}" ]]; then
bin/cylc
Outdated
@@ -65,6 +65,14 @@ init_cylc() { | |||
} | |||
|
|||
help_util() { | |||
if [[ -z $PAGER ]]; then | |||
help_util2 $@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always quote "$@"
.
Now a one liner! Have defaulted to less, do we need to fallback to export PAGER='vi -' |
Something like this good enough? https://groups.google.com/forum/#!topic/cylc/Z9Kt2dDTQGA