Skip to content
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.

Commit

Permalink
Fixed Issue #338, needed to to use nullglob.
Browse files Browse the repository at this point in the history
'*' expands to itself if no expansions could be made, overriding every other file in ls_output.
Hidden files also have semantic menus now.
  • Loading branch information
cuttlebit authored and Nick Ashley committed Sep 25, 2014
1 parent 9f8c56d commit e623f0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/Termlets/ls
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ file_end_mark=$(text_menu_end '1')
ls_output=$'\n'$ls_output$'\n'

# TODO: Search for files in directory passed to ls rather than the current directory
shopt -s nullglob dotglob
for filename in *; do
if [[ -d $filename ]]; then
file_substitution="$dir_begin_mark$filename$dir_end_mark"
Expand Down

0 comments on commit e623f0b

Please sign in to comment.