You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dir is equivalent to ls -C -b; that is, by default files are listed in columns, sorted vertically, and special characters are represented by backslash escape sequences.
vdir is equivalent to ls -l -b; that is, by default files are listed in long format and special characters are represented by backslash escape sequences.
Do the changes made by the dir or vdir invocations need to be overwritable ? For example dir is a shortcut for ls -C -b but can you overwrite -C using something like dir -l ?
Activity
tertsdiepraam commentedon Feb 19, 2022
For this approach, the GNU decoded project might be helpful: https://www.maizure.org/projects/decoded-gnu-coreutils/ls.html.
It explains that GNU uses a
modevariable that is set to eitherls,dirorvdir, which changes the behaviour of the program.gmnsii commentedon Apr 14, 2022
Do the changes made by the
dirorvdirinvocations need to be overwritable ? For examplediris a shortcut forls -C -bbut can you overwrite-Cusing something likedir -l?tertsdiepraam commentedon Apr 14, 2022
I just did a quick test and I think the answer is yes.
dir -loutputs the long format andvdir -Coutputs the column format.gmnsii commentedon Apr 14, 2022
Ok thanks.
Add dir and vdir utils (based on ls)
sylvestre commentedon Apr 15, 2022
I think we are good now!