non-breaking space question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers non-breaking space question
# 1  
Old 08-14-2008
non-breaking space question

Might anyone know how to make a nbsp (160|0xA0) character? I am using a Dell Latitude D620 running Windows XP and then starting Exceed 9.0 defaulting to native window emulation for my X (us.kbf keymapping) (Latin-1 symbol set I believe) and calling an xterm (fontdefault, whatever that might be) with login shell zsh (3.0.8) from a machine (Netra 1280) running Solaris 9. Does anyone have any idea what esc|ctrl|etc sequence might generate it? If any more information would help, I will tell what I can. I did not copy and paste from Windows, so it is not that I grabbed it and ported it over.

(I accidentally made the non-breaking space character on the command line and it caused me to spend about an hour needlessly debugging a script of mine because it joined my option to my argument akin to

prog -opt\ arg

or

prog "-opt arg"

instead of

prog -opt arg

even though it looked like the latter, it behaved more like the former two, though, in reality, it was like none of them.)
# 2  
Old 08-15-2008
It just happened again while piping to sort and zsh reported that it did not recognize the command sort, because it looked like " sort" to the shell. Has no one else using zsh 3.0.8 experienced this? I think it happens while I am editing the command line, but what causes it escapes me.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Breaking a pipe

Here's my code - for File in "${Files}"; do uuencode "${File}" "$(basename ${File} 2>&-)" 2>&-; done | mailx -s "subject" "a@b.c" Now I want to know if there a way to *not* send an email if the "Files" variables turns out to be blank. Any suggestions? Also, just to clarify, I... (4 Replies)
Discussion started by: nexional
4 Replies

2. Shell Programming and Scripting

awk: searching for non-breaking-space

This code shal search for the non-breaking space 0xA0 though it returns the error "fatal: attempt to use scalar 'nbs' as array" Can somebody help? awk --non-decimal-data -v nbs="0xA0" '{if($0 in nbs) {print FILENAME, NR}}' *.txt (1 Reply)
Discussion started by: sdf
1 Replies

3. UNIX for Dummies Questions & Answers

Space Question?

hi guys I was presented a LUN from a storage 85GB. fdisk -l shows 85GB space cool but after I formatted the partition using fdisk and mkfs.ext3 I only get 75GB space available why is that? why too many GB lost? thanks a lot (1 Reply)
Discussion started by: karlochacon
1 Replies

4. Programming

Question on interrupts and user space app

Can a user space application be asynchronously affected of its normal execution course by an interrupt? How does the driver know which user space process to interrupt? What are the functions in user space and kernel drivers that achieve this? (1 Reply)
Discussion started by: dragonpoint
1 Replies

5. Ubuntu

Disk Space lost mysteriously upon breaking a process.

Hi All, Today when I was working on a script to generate custom wordlist. So I ran a script and the output was directed to /tmp. The disk space was around 19 gb. While the script was running, I decided to direct the o/p file to my 1TB drive. So I broke the run using Ctrl + C. Now when I... (4 Replies)
Discussion started by: morningSunshine
4 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. UNIX for Dummies Questions & Answers

Help a newbie with an iostat/disk space question.

Hello, On Solaris 10, iostat -E gives me the following results: sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: FUJITSU Product: MAY2073RCSUN72G Revision: 0501 Serial No: 0708S08M2L Size: 73.40GB <73400057856 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0... (1 Reply)
Discussion started by: lieselr
1 Replies

8. Shell Programming and Scripting

Breaking long lines into (characters, newline, space) groups

Hello, I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to search and replace properly and edit the file, I open the file in textwrangler, search for "\r " and... (14 Replies)
Discussion started by: rowie718
14 Replies

9. Shell Programming and Scripting

Sybase space question

I want to write a script to ensure we have enough space in test to bcp in tables from production. Currently we bcp tables out of a sybase database in production and bcp in the table data to a test environment. We use isql and run the stored procedure sp_spaceused against each of the tables in the... (1 Reply)
Discussion started by: stonemonolith
1 Replies

10. Shell Programming and Scripting

Question about breaking up a variable

I've got a variable that I define based on the contents of a field in a pipe delimited text file (read into $REC) as follows: TEMP=${echo $REC|awk '-F|' '{print $1}') echo $TEMP gives me: "$X1" "$X2" "$X3" How can I then split this up to pass each of the quote delimited parameters into... (2 Replies)
Discussion started by: krism
2 Replies
Login or Register to Ask a Question