patacongo opened a new issue, #2311:
URL: https://github.com/apache/nuttx-apps/issues/2311

   All NSH commands that accept a path name differ from the corresponding 
commands in other shells such as Bash in at least one important way:
   
   * Shells like Bash accept a REGEX pattern matching string.  For example, `rm 
dat*[0-9][.]log` would delete all .log files in the current directory with 
names like dat_NNN_, where _NNN_ is some decimal number.  Another example,` rm 
*` would delete all non-hidden files in the current working directory (not 
strictly REGEX).
   
   * In NSH, the argument is the path to a file or directory.
   
   This means the commands like `rm *` fail because `*` is not expanded into a 
list of file/directory names.
   
   NSH has much of the look and feel these larger shells so any behavioral 
difference can be confusing.  And sometimes there there is no simple 
alternative to the Bash-like command.  There has been discussion recently, for 
example, on how to do `rm *` without `*`.
   
   A solution would affect all NSH commands with path arguments.  That would 
have to be reinterpreted as a REGEX match pattern and every file in the 
directory path would have to compared against the pattern and added to a list 
of paths to be operated on.
   


-- 
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.apache.org

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

Reply via email to