+1 The duplication of the same features in the system is a nuisance to developers, who do not understand which version to use or which version has more advantages. In addition, removing redundancy also helps optimize the usage of flash/ram.
BRs, Tomek CEDRO <to...@cedro.info> 于2025年4月14日周一 22:18写道: > Thanks Xiang for the details :-) > > Why not add the unsync to the nsh/dd and keep this one still as > minimal default with more features delectable instead removing? :-) > > Aside question did NuttX consider `/bin/dd` versus built-in `dd` > (something like built-in `time` versus `/usr/bin/time` in Unix)? We > could use built-in nsh/dd and apps/system/dd as /bin/dd for "external" > application (note dd is just an example here but things like this may > happen more often in future). > > Documentation would need an update in either case when dd is changed > right? :-P > > Thanks :-) > Tomek > > On Mon, Apr 14, 2025 at 3:58 PM Xiang Xiao <xiaoxiang781...@gmail.com> > wrote: > > > > The functionality in system/dd and nshlib is unsync, this patch: > > > > 1. update system/dd to get the same functionality as nshlib/dd > > 2. remove one copy(nshlib/dd) to avoid the inconsistency in the > future. > > > > Good work! thanks. > > > > > > On Mon, Apr 14, 2025 at 9:07 PM 董九柱 <dongjiuzhu0...@gmail.com> wrote: > > > > > Hello Community, > > > > > > I submit some PRs about using system/dd app instead of dd command from > > > nshlib. > > > > > > PR link: > > > https://github.com/apache/nuttx-apps/pull/3057 > > > https://github.com/apache/nuttx/pull/16198 > > > > > > Why do? > > > There are two implementations of dd in the current system, one under > nshlib > > > and the other under system/dd. > > > we need to remove one to avoid duplication code and function lost. The > > > discuss: https://github.com/apache/nuttx-apps/pull/3048 > > > From the current perspective, the system "dd" is a better choice, as it > > > allows for the separate configuration of its corresponding stack and > > > compilation into an independent wasm module. > > > > > > How do? > > > 1. Align the functionality of "dd" in nshlib with that in the system > "dd" > > > to ensure consistent functionality. > > > 2. Remove implement of dd in nshlib, include > > > config(CONFIG_NSH_DISABLE_DD、NSH_CMDOPT_DD_STATS) and > > > file(nshlib/nsh_ddcmd.c) > > > 3. Adjust all board configurations to ensure backward and forward > > > compatibility. > > > > > > So I need your vote here: > > > If you accept the breaking PR, please reply with +1. > > > If you reject the PR, please reply with -1. > > > > > > BRs, > > > > > > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >