Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P12911
bashisms - z.sh
Active
Public
Actions
Authored by
Dzahn
on Oct 3 2020, 12:53 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F32371882: bashisms - z.sh
Oct 3 2020, 12:53 AM
2020-10-03 00:53:51 (UTC+0)
Subscribers
None
script ./ori/.z.sh does not appear to have a
#! interpreter line;
you may get strange results
possible bashism in ./ori/.z.sh line
46
(
bash arrays,
${
name
[0|*|@]
}
)
:
for
exclude in
"
${
_Z_EXCLUDE_DIRS
[@]
}
"
;
do
possible bashism in ./ori/.z.sh line
51
(
$RANDOM
)
:
local
tempfile
=
"
$datafile
.
$RANDOM
"
possible bashism in ./ori/.z.sh line
109
(
${
foo
:
3
[:
1
]
}
)
:
-*
)
local
opt
=
${
1
:
1
}
;
while
[
"
$opt
"
]
;
do
case
${
opt
:
0
:
1
}
in
possible bashism in ./ori/.z.sh line
116
(
${
foo
:
3
[:
1
]
}
)
:
esac
;
opt
=
${
opt
:
1
}
;
done
;;
possible bashism in ./ori/.z.sh line
223
(
bash arrays,
${
name
[0|*|@]
}
)
:
[[
-n
"
${
precmd_functions
[(r)_z_precmd]
}
"
]]
||
{
possible bashism in ./ori/.z.sh line
223
(
alternative
test
command
([[
foo
]]
should be
[
foo
]))
:
[[
-n
"
${
precmd_functions
[(r)_z_precmd]
}
"
]]
||
{
possible bashism in ./ori/.z.sh line
230
(
read
with option other than -r
)
:
read
-l compl
possible bashism in ./ori/.z.sh line
234
(
complete
)
:
elif
complete
>/dev/null
2
>
&
1
;
then
possible bashism in ./ori/.z.sh line
237
(
complete
)
:
complete
-o filenames -C
'_z --complete "$COMP_LINE"'
${
_Z_CMD
:-
z
}
possible bashism in ./ori/.z.sh line
240
(<<<
here string
)
:
grep
"_z --add"
<<<
"
$PROMPT_COMMAND
"
>/dev/null
||
{
possible bashism in ./ori/.z.sh line
241
(
$'...'
should be
"
$(
printf
'...'
)
"
)
:
PROMPT_COMMAND
=
"
$PROMPT_COMMAND
"
$'\n''_z --add "$(command pwd '
$_Z_RESOLVE_SYMLINKS
' 2>/dev/null)" 2>/dev/null;'
Event Timeline
Dzahn
created this paste.
Oct 3 2020, 12:53 AM
2020-10-03 00:53:51 (UTC+0)
Log In to Comment