pussuw opened a new pull request, #1706:
URL: https://github.com/apache/nuttx-apps/pull/1706

   ## Summary
   This adds support for more complex alias handling, such as:
   
   $ alias ls='ls -l'
   
   Previously such an alias was not split into the command verb and the 
argument correctly, instead the full alias string was handled as the verb, 
which obviously fails.
   
   This commit fixes this by expanding the alias, checking whether it has 
arguments and if so, it merges the expanded alias + the old command line 
together, resulting in a completely new command line.
   
   Example (assuming the alias above has been created):
   
   $ ls /bin
   
   Results in a new command line: "ls -l /bin" which is then parsed and 
executed.
   ## Impact
   Adds support for aliases with arguments
   ## Testing
   icicle:nsh
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to