Jason Fehr created IMPALA-15610:
-----------------------------------

             Summary: [tools] Devcontainer Aliases Hide Return Code
                 Key: IMPALA-15610
                 URL: https://issues.apache.org/jira/browse/IMPALA-15610
             Project: IMPALA
          Issue Type: Bug
    Affects Versions: Impala 5.0.0
            Reporter: Jason Fehr
            Assignee: Jason Fehr


Functions and aliases defined in 
[.devcontainer-build/zshrc|https://github.com/apache/impala/blob/master/.devcontainer-build/zshrc]
 use pushd/popd to ensure the command is run from the correct directory.  When 
the function/alias runs "popd", it overwrites the last return code from the 
actual command that was executed.  Additionally, if the function/alias was 
executed from the correct folder, the pushd command does nothing, and the popd 
command returns an error code because the directory stack is empty.

Update all functions/aliases removing the "popd" command.  Since the pushd 
command will still run, if users started from and different directory and wish 
to return to that previous directory, they can manually run popd.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to