[cs631apue] -w Rawprint

Jan Schaumann jschauma at stevens.edu
Sun Oct 13 15:37:59 EDT 2013


Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
> Also for the -w flag, are we just forcing print of the non-printable
> characters in the path.
> 
> i.e. if -q is selected it replaces non printable characters with '?' but if
> -w is selected it just forces them to be printed out based on isprint().

If '-w' is selected, the program will not check whether or not the
character is printable, it will simply print it.

By default your 'ls -q' should give the same output as (on linux-lab.stevens.edu):

/bin/ls ~jschauma/tmp/

while your 'ls -w' should produce the same as:

/bin/ls ~jschauma/tmp | cat

-Jan


More information about the cs631apue mailing list