niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » shell
zsh: print -n 'this line' prints nothing
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Geoff Wing
*nix forums beginner


Joined: 13 Feb 2005
Posts: 2

PostPosted: Sun Feb 13, 2005 3:35 am    Post subject: Re: zsh: print -n 'this line' prints nothing Reply with quote

shea martin <smartin@arcis.com> typed:
: Christian Schneider wrote:
:> Thus spake shea martin (smartin@arcis.com):
:>>zsh output:
:>>% print -n 'this line'
:>>% print -n 'one\ntwo'
:>>one
:> setopt nopromptcr

This is FAQ 3.23

: for some reason I had tried setopt no_prompt_cr.

That should work, otherwise you would have had an error.
For the option name: it's case insensitive, underscores are ignored, and
"unsetopt promptcr" = "setopt nopromptcr".

Regards,
Geoff
Back to top
Shea Martin
*nix forums beginner


Joined: 06 Apr 2005
Posts: 47

PostPosted: Sat Feb 12, 2005 9:11 pm    Post subject: Re: zsh: print -n 'this line' prints nothing Reply with quote

Christian Schneider wrote:
Quote:
Thus spake shea martin (smartin@arcis.com):

zsh output:
% print -n 'this line'
% print -n 'one\ntwo'
one
% print $ZSH_VERSION
4.2.1
% print -n $ZSH_VERSION
%


setopt nopromptcr

thanks,

for some reason I had tried setopt no_prompt_cr.

~S
Back to top
Christian Schneider
*nix forums beginner


Joined: 01 Mar 2005
Posts: 17

PostPosted: Sat Feb 12, 2005 8:08 pm    Post subject: Re: zsh: print -n 'this line' prints nothing Reply with quote

Thus spake shea martin (smartin@arcis.com):
Quote:
zsh output:
% print -n 'this line'
% print -n 'one\ntwo'
one
% print $ZSH_VERSION
4.2.1
% print -n $ZSH_VERSION
%

setopt nopromptcr
--
$ du -shx /usr/bin/zsh => 416K # Christian 'strcat' Schneider
$ man zshall | wc -l => 26796 # [ Zsh Manpages ]
zshbuiltins(1), zshcompwid(1), zshcompsys(1), zshcompctl(1), zshexpn(1),
zshmisc(1), zshmodules(1), zshoptions(1), zshparam(1), zshzle(1) zshall(1).
Back to top
Shea Martin
*nix forums beginner


Joined: 06 Apr 2005
Posts: 47

PostPosted: Sat Feb 12, 2005 7:34 pm    Post subject: zsh: print -n 'this line' prints nothing Reply with quote

zsh output:
% print -n 'this line'
% print -n 'one\ntwo'
one
% print $ZSH_VERSION
4.2.1
% print -n $ZSH_VERSION
%

Is this a bug with my zsh install?

Thanks,

~S
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 10:59 pm | All times are GMT
navigation Forum index » Programming » shell
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unable to print PDF only. subhankar RedHat 0 Mon May 05, 2008 9:08 am
No new posts number of words in a line Fred J. C++ 3 Fri Jul 21, 2006 3:52 am
No new posts print all permutations of string anurag C 10 Thu Jul 20, 2006 5:57 pm
No new posts Connection refused at /usr/lib/perl5/vendor_perl/5.8.6/Ma... DragonsLord Mandrake 0 Thu Jul 20, 2006 12:44 pm
No new posts entires each on separate line kevin_m shell 2 Wed Jul 19, 2006 10:51 pm

Mortgage Calculator | Internet Advertising | Guitar Lesson | Bankruptcy | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2452s ][ Queries: 20 (0.1535s) ][ GZIP on - Debug on ]