gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master c593823 23/62: Table: Completion, fix hdu and


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master c593823 23/62: Table: Completion, fix hdu and fits suggestions
Date: Thu, 13 May 2021 22:20:48 -0400 (EDT)

branch: master
commit c59382310c1050002bc1b7f16500c4b111069a39
Author: Pedram Ashofteh Ardakani <pedramardakani@pm.me>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Table: Completion, fix hdu and fits suggestions
    
    Elaborate on command comments. Share a thought on whether to exit the
    program or print an error message or nothing at all.
    
    Fix the regex problem with reading fits filenames from commandline.
    
    Consider commands that are able to accept several inputs, e.g. fits
    file, long options, etc. The former is done by 'appending' the
    suggestions to 'COMPREPLY' using the '+=' operator instead of assigning
    a value with the '=' operator.
    
    Use the complete program address 'PROG_ADDRESS' instead of sole program
    name 'PROG_NAME'.
    
    Add 'range' and 'sort' command suggestions.
    
    Use a 'db' debugging flag to remove the need for commenting and
    uncommenting debugging messages.
---
 bin/table/completion.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/table/completion.sh b/bin/table/completion.sh
index 60c74eb..23b0510 100644
--- a/bin/table/completion.sh
+++ b/bin/table/completion.sh
@@ -31,6 +31,7 @@ PREFIX="/usr/local/bin";
 ASTFITS="$PREFIX/astfits";
 ASTTABLE="$PREFIX/asttable";
 db=0 # Set 0 for printing debug messages, else set to 1
+
 # Use extended globs in the case statements if needed
 # https://mywiki.wooledge.org/BashGuide/Patterns#Extended_Globs
 # shopt -s extglob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]