Re: script(1) > Why does it output in CR/LF?



At 02:30 AM 2/28/2006, Kristian Vaaf wrote:

Hello.

I am just curious why the files I generate with script(1) output in CR/LF
forcing me to run dos2unix on them everytime?

Script just captures the output of your shell, and your shell has to send crlf in order to get the cursor back to the beginning of a line.

-Glenn


Isn't this a bit stupid?

Thanks,
Vaaf

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: UNIX export command - memory space
    ... Every shell runs in its own address space. ... If one script runs concurrently with another script, ... Because the shell in which the first script is running is ... shells get created everytime you run a shell script). ...
    (comp.unix.shell)
  • startup/login script
    ... I would like to set up a script that is run *once* when a user logs in. ... but this is run everytime a shell ...
    (comp.os.linux.setup)
  • Re: detect shell script language
    ... In the 'old' days, when a user typed in a command, the interactive shell would immediately pass it off to 'exec' to execute. ... So, on return from exec with an error status, the shell would fork a copy of itself to try and run the script. ... As a result of the above, it was hard to tell whether the script was a Bourne shell or C shell, so the convention was introduced of using the Bourne shell no op command, as the first line in a Bourne shell script. ...
    (Debian-User)
  • Re: Call for input on comp.unix.shell FAQ
    ... >> questions and just tell people to FAQ it. ... The other level is how to write shell scripts. ... How can I remove whitespace characters within file names? ... Why one shouldn't use "echo" in a script? ...
    (comp.unix.shell)
  • SHELLdorado Newsletter 1/2003 - July 6th, 2003
    ... The "SHELLdorado Newsletter" covers UNIX shell script related ...
    (comp.unix.admin)