-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[interactive] Respect OILS_COMP_UI in oshrc/yshrc (#2244)
You can do # oshrc OILS_COMP_UI=nice Rather than osh --completion-display nice - Update docs - add test/manual.sh - thinking about ENV.OILS_COMP_UI issue --------- Co-authored-by: Andy C <[email protected]>
- Loading branch information
Showing
5 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Manual tests | ||
# | ||
# Usage: | ||
# test/manual.sh <function name> | ||
|
||
: ${LIB_OSH=stdlib/osh} | ||
source $LIB_OSH/bash-strict.sh | ||
source $LIB_OSH/task-five.sh | ||
|
||
readonly OSHRC=_tmp/manual-oshrc | ||
|
||
setup() { | ||
cat >$OSHRC <<EOF | ||
OILS_COMP_UI=nice | ||
EOF | ||
} | ||
|
||
test-osh() { | ||
# Test it manually | ||
bin/osh --rcfile $OSHRC | ||
} | ||
|
||
test-ysh() { | ||
# same OSHRC? Should it respect ENV.OILS_COMP_UI? | ||
bin/ysh --rcfile $OSHRC | ||
} | ||
|
||
task-five "$@" |