From 367970a8e1ef360cafa9ada1ba6c3a5cea24a18f Mon Sep 17 00:00:00 2001 From: Tong Wu Date: Tue, 9 Sep 2014 22:03:23 +1000 Subject: [PATCH 1/2] Fixed Issue #338, needed to to use nullglob. '*' expands to itself if no expansions could be made, overriding every other file in ls_output. --- data/Termlets/ls | 1 + 1 file changed, 1 insertion(+) diff --git a/data/Termlets/ls b/data/Termlets/ls index 5242d7a..8bc0815 100755 --- a/data/Termlets/ls +++ b/data/Termlets/ls @@ -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 for filename in *; do if [[ -d $filename ]]; then file_substitution="$dir_begin_mark$filename$dir_end_mark" From 029a6b572e926d21630fd3a87857b96ae303c770 Mon Sep 17 00:00:00 2001 From: Tong Wu Date: Thu, 11 Sep 2014 23:34:29 +1000 Subject: [PATCH 2/2] hidden files now have semantic menus --- data/Termlets/ls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Termlets/ls b/data/Termlets/ls index 8bc0815..2098d80 100755 --- a/data/Termlets/ls +++ b/data/Termlets/ls @@ -10,7 +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 +shopt -s nullglob dotglob for filename in *; do if [[ -d $filename ]]; then file_substitution="$dir_begin_mark$filename$dir_end_mark"