Bash error messages: backtick vs single quote

I'm running xfstests over NFS... the expected output for test 306 is:
touch: cannot touch `SCRATCH_MNT/this_should_fail': Read-only file system
^^^
But I'm seeing:
touch: cannot touch 'SCRATCH_MNT/this_should_fail': Read-only file system
^^^
The test is failing because my system is printing a single quote instead of a backtick before SCRATCH_MNT.  Is there an easy way to control this?

Hi,
What is your locale ?
Sometimes, the quote characters in the program's output depends on the current locale.
You should try some of these:
LC_ALL=C your-command
LC_ALL=en_US.UTF-8 your-command
For instance:
$ LC_ALL=C cp -v a b
'a' -> 'b'
$ LC_ALL=en_US.UTF-8 cp -v a b
‘a’ -> ‘b’
$ LC_ALL=fr_FR.UTF-8 cp -v a b
« a » -> « b »
Last edited by nowahn (2013-03-29 08:56:42)

Similar Messages

  • How to Inscribe all the error messages into a single package ??

    Hi,
    I want to Inscribe all the error messages into a single package., and call the concern package from the exception block in every sp by passing the error code to that package, which will return the Concern error message to the calling Sp.,
    Can any one help me out how to accomplish this ., ?
    regards
    Raja

    I want to Inscribe all the error messages into a single package., Why do you want to inscribe all the messages in a package?
    I would suggest you to store them in a table instead and you can write a functin to retrive the error messages required.
    But if your requirement is for 'Package' then assuming that you store all the error messages in a table 'error_table' (say) following code may help you .
    CREATE TABLE Error_Table (
      Error_Code VARCHAR2(10),
      Error_Desc VARCHAR2(1024));Now insert your error codes and descriptions in this table.
    CREATE OR REPLACE PACKAGE pkg_Error_Handler
    AS
      FUNCTION f_Get_Error_Message(p_Error_Code  Error_Table.Error_Code%TYPE) RETURN VARCHAR2;
    END pkg_Error_Handler;/
    CREATE OR REPLACE PACKAGE BODY pkg_Error_Handler
    AS
      FUNCTION f_Get_Error_Message
           (p_Error_Code  Error_Table.Error_Code%TYPE)
      RETURN VARCHAR2
      IS
        lv_Error_msg  Error_Table.Error_desc%TYPE;
      BEGIN
        BEGIN
          SELECT Error_desc
          INTO   lv_Error_msg
          FROM   Error_Table
          WHERE  Error_Code = p_Error_Code;
        EXCEPTION
          WHEN No_Data_Found THEN
            lv_Error_msg := 'No such error code '
                            ||p_Error_Code
                            ||' defined in the system';
          WHEN OTHERS THEN
            lv_Error_msg := p_Error_Code;
        END;
        RETURN lv_Error_msg;
      END f_Get_Error_Message;
    END pkg_Error_Handler;
    /and you can call this packaged funtion from any exception block to get the error description.
    Regards,
    Abhijit.
    N.B.: Code not tested

  • All error messages in a single window

    Hi,
    Just a small help needed . Actually i want that all the error messages should be displayed in a single window for the mandatory fields check,when one try to save the form.I had made a function which is being called by the fields at their pre save event for the mandatory check and all the error messages are been taken into a global array and displayed.But the problem is that the error message window is displayed only for the first time when i try to save the form and after that no mandatory check is being done .What might be the issue with my logic or anybody can provide some other pointers that how all the error messages can be displayed in a single window in the end ?
    Thanks

    I do not know of a way to do this in the current product.
    Paul

  • I get this error message: only a single instance of this application can run

    When I try to open my bank statement I get this message: only a single instance of this application can run.  Just wondering what that means,  and how do I open a file with adobe reader?

    Adobe Reader | Edit | Preferences | Security (Advanced)
    That is, start Adobe Reader.
    Chose Preferences from the Edit menu
    Look at the left hand side for Security (Advanced) and click on it
    Now look for the option to turn off Protected Mode.

  • Sending any email - error message 'exceeded their send quota'

    An error occurred while sending mail. The mail server responded: User [email protected] has exceeded their send quota. Please verify that your email address is correct in your Mail preferences and try again.
    I've uninstalled/reinstalled TB. Removed and added the email account, tried multiple out port combinations of 25,80 and 3535' checked online at godaddy and can send mail just fine, no quota's exceeded, plenty of hard drive space, threw away all emails, in and sent. This is my POS computer and we need it working! Please don't make me go back to Outlook!!!!
    Running - 2009 Windows 7 Home Premium; Service Pack 1 - Dell PC

    Thunderbird does not set quotas. Email providers do. Ask them.

  • How to copy item value that contain a single quote(')?

    Hi,
    I have one "Copy" button in a APEX form. When user clicks it, it simply copy the item's values from the form to a new form by using APEX provided function behind the button- "Set these item values with these values". It is simple and works fine in normal cases. However, see, we have a text field called "Product Details", user types in for example "Oracle's new vision". When I click COPY button, APEX try to copy the text in "Product Details" field from this form to a new form but it returns error because of that single quote. Is there any way I can do something to replace that single quote with two single quote like we usually do in PL/SQL in the place "Set these item values with these values" of APEX button? I tried REPLACE(#P66_PRODUCT_DETAILS#., '''', '''''') but not work. I saw someone in the forum meantioned that to use something like "/#P66_PRODUCT_DETAILS#/" to get around. Any one with success?

    Thanks. I think it should work this way. However, our form has about 20 ~30 text fields, I have to create 20~30 hiddle fields to handle the problem because I never know which field could contain a single quote. Ideally, a new version of APEX should have the functionality to deal with the problem when using "set values with those values" method. At least, it should provide some kind of interaction for user to get away from single quote or comma or column etc.
    What I did is to get out of APEX native function and to create a new records in background by PL/SQL using record id that passed in from APEX form. It works perfectly. Although, user can only edit the record after it is created, not as user friendly as "Copy first-look at it-edit it-then create it" I originally planed.
    Thanks for your help,

  • How to set error message inside the loop...module pool

    Dear all,
         Am creating Table Control without wizard. In that i am looping the values, that is, Once if i entered 5 digit values means, 12345-08... the values should be stored in z-table like this 12345,12346,12347,12348 . That is 5-8 it as to update in z table. for this i createdloop at itab and inside that i written a code to count the value and all. and also its clearly updating the value in ztable too. now i want to know, if once again i entered the same value means, like 12345-08.. it as to show error messge.I dont know how to set the condition with error message inside the single loop .... Its all comes under module pool program.
    Thanks,
    Santhosh.R

    If i understood your doubt, here goes the answer.
    LOOP AT itab INTO wa_itab.  " This is your loop
      l_tabix = sy-tabix. "l_tabix receives the line of the loop
      READ TABLE itab WITH KEY itab = wa_itab.  "itab is the same tab of your loop
      IF sy-subrc EQ 0 AND l_tabix NE sy-tabix.    "Here the sy tabix have the value of the read table.
    *     Here you do your error treatment.
      ENDIF.
    ENDLOOP.
    Explanation: When you are looping your internal table, you use a READ TABLE to see the already recorded registers. If the read table finds one register (sy-subrc EQ 0) and the this register is not the one of the current line (l_tabix NE sy-tabix). It means you have a duplicated register.
    Maybe there is someway easier to do this, but this is what i thought now.
    I hope this was your doubt hehe.
    Thales Schmidt

  • Table Creation halted by misleading error message

    When creating a table, the action was not allowed with error 01950 - no priviledges on tablespace NAME.
    The JDeveloper GUI front end provides many "priviledges",
    none of which corrected the situation.
    It was not until I went to orafaq.com and did a search
    did it show me that the error was in the Quota.
    It would improve the product to add a new error message
    that reads: "No Quota on tablespace NAME" so users are not misled.

    Please post technical questions at
    General Database Discussions
    Regards,
    Anupama

  • Error Handling and Error Messages

    I already posted this in the java programming forum, but I dont think the people responded understand patterns, or what I was asking. Here is my original post, for reference I am not asking how to catch and exception, or how to display an error, I am asking about the pattern implementation.
    I am currently in the process of creating my Exception model for my program, and I have a question about error messages. I was reading the book "Effective Java Programming" which deals with patterns and it states that an exception should state the error and report information on all relavent states. For instance If you have a class the modeled some sort of memory array, and an access was requested to a block of memory outside the array you should throw an ArrayIndexOutOfBoundsException("Index:" + index + ", start:" + 0 + ",end:" + Array.length) or if you made your own MemoryAddressOutOfBoundsException(same as above) which when printed should read
    ArrayIndexOutOfBoundsException: Index:-1, start:0, end:0
    stack trace
    The pertinate information is the index, start index, and end index.
    The book CLEARLY states as an industry design pattern that exceptions weather checked or unchecked should not contain user error messages. For instance with the above example one might be tempted to use this as the exception message: "The memory addres index is not a valid memory address." This is clearly a user error message.
    So heres my situation. In a gui environment (command line console not visible) how do you generated a user error message, letting the user know that an internal exception has occured.
    In my previous implementation of my project, I used the exception message the user error message and just reported the message on a dialog. I have heard of people using error catalogs, which centrallizes all the error messages into a single class or file.
    I was wondering if and Error catalog was a good approach, how I might go about implementing one, and if not how do you the community handle user error messages.

    class MyAppErrors {
       public static final int FILE_NOT_FOUND = 0;
       public static final int DIR_NOT_FOUND = 1;
       public stat final String[] errMsgs = {
          "The file was not found.",
          "The directory was not found.",
       public String getErrMsg( int n ) { return errMsgs[n]; }
    [\code]
    And a nicer version would allow the calling code to pass in a substring so you could say "The file 'somename.ext' was not found."                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Customizing Predefined Database error messages

    Hi,
    I've a ADF table from the view object in my page. The table has two columns and column 2 is mandatory from entity side (in db not null). While filling the table from the page, I kept 3 row's value empty in 2nd column.
    Now on submit, it throws validation message which is as expected. But as I left 3 field in column 2 blank, in the message it says "Column 2 : Please enter a value" three times.
    My customer wants that instead of three message string, it should display one message string like "Please enter values for column 2"
    Is there any possibility to concatenate the 3 message string into single message? If yes what is the way to achieve it?
    We are using JDeveloper 11.1.1.4
    Thanks in Advance
    Arunava

    Hi,
    I'm also facing same problem since many days..I'm unable to concatenate multiple duplicate error messages into a single message.I've a ADF table from the view object in my page.When I'm entering multiple row values in a single column as a blank values(which are mandatory), and after When i click the commit,AttrValException is being occured and predefined error messages are being displayed in a dialog box.As the entered blank values are from same column, the error messages are duplicate as shown below::
    (For example):
    Error:
    EmployeeId :You Must enter a Value
    EmployeeId :You must enter a Value
    EmployeeId :You must enter a Value.
    When I click the commit button,Is there any way to handle the exception and concatenate these error messages into a single message.
    I'm using JDeveloper 11.1.1.4.0
    Thanks in Advance
    Krishna Murthy

  • Erronious error message starting PSE5

    I'm using PSE5 in XP Pro SP3. For the past week or so, whenever I
    start the program in Full Edit mode for the first time in a day, I get
    the following error message:
    The action you have requested could not be completed because the
    application is not responding. It may still be loading or waiting
    for a response from you.
    The error message has a single button, "OK".
    Elements then proceeds to finish loading. To my knowledge, I have made
    no changes to anything in the software. Also to my knowledge, I'm not
    doing anything different on my system between when it loaded fine and
    when this error started happening.
    In case it matters, I'm starting Elements from the screen that lets you
    choose the Organizer, the two Edit modes, or tutorials.
    Jeffrey Kaplan www.gordol.org
    The from userid is killfiled Send personal mail to gordol
    Tips for the Evil Henchman: 7. Learn to distinguish Heroes from
    Sidekicks. Heroes are usually taller and more somber, while Sidekicks
    dress with more flair and tell more jokes. Taking on the Hero when you
    only have enough manpower/firepower to take on the Sidekick will earn
    you an all-expenses-paid trip on Stygian Cruise Lines.

    I'm using PSE5 in XP Pro SP3. For the past week or so, whenever I
    start the program in Full Edit mode for the first time in a day, I get
    the following error message:
    The action you have requested could not be completed because the
    application is not responding. It may still be loading or waiting
    for a response from you.
    The error message has a single button, "OK".
    Elements then proceeds to finish loading. To my knowledge, I have made
    no changes to anything in the software. Also to my knowledge, I'm not
    doing anything different on my system between when it loaded fine and
    when this error started happening.
    In case it matters, I'm starting Elements from the screen that lets you
    choose the Organizer, the two Edit modes, or tutorials.
    Jeffrey Kaplan www.gordol.org
    The from userid is killfiled Send personal mail to gordol
    "They are a strange people, but they are okay." (Amb. Mollari, B5
    "The Quality of Mercy")
    Jeffrey Kaplan www.gordol.org
    The from userid is killfiled Send personal mail to gordol
    Guidelines for Legion of Doom Troops: 2. When performing guard duty,
    do not stare continually in one direction, but take a moment now and
    then to look around.

  • Replaceing single quote in error message

    Hi,
    Iam trying following to get and insert into ERROR_LOG table:-
    SUBSTR('<%=odiRef.getPrevStepLog("MESSAGE")%>',1,1000)
    It is throwing up an error when it is trying to insert into ERROR_LOG Table,the reason is error message has got following :-
    ' PLS-00201: identifier 'III_1742_2013011901' must be declared'
    i.e quote with in a quote if i take that one out from error message i can insert into ERROR LOG Table.
    How can we avoid this in ODI odiRef.getPrevStepLog message?
    Cheers

    try to replace the character or read after PLS.
    You can give a try like below. This should be done inside script let.
    odiRef.getPrevStepLog("MESSAGE").replace("'","")

  • Intermittent error on login page when username is entered as a single quote( ' ) and tab is pressed.

    Hi All,
    We have an ADF based portal application which has a login page with Username and Password inputText field.
    When we type a single quote( ' ) in the Username field and press tab to go to the Password field an error is thrown saying "A connection to the server has failed" and this window does not close if we click on ok or the close option of the popup.
    This is causing serious problems for us. It would be great if anyone could help us out as to why this is happening or if anyone has experinced the same issue.
    Thanks,
    Tanya

    Hey Frank,
    Sorry for the delayed reply. Since the issue was a high priority one and had to fix it ASAP we didn't have time to analyse it further.
    We just inserted a javascript that prevented the form from getting submitted if a single quote is entered in the inputText field.
    So far it has worked for us.
    Thanks for your help though.
    Tanya

  • Error with single quotes in open document function

    Hi all,
    I have an issue with the special characters using the open document function. I'm passing a name, and I'm using the URLEncode function, but it doesn't work for single quotes, it shows a javascript error. I tried with HTMLEncode and it works for single quotes, but not for the other special characters like @,+. I tried with both functions at the same time but it doesn't work either.
    Please let me know if you know how to solve it.
    Thanks,
    Marcela

    Hi Prashant,
    I did not work it works for single quotes only, but not for other special characters.
    This one doesn't work for single quotes
    ="<a href='../../scripts/openDocument.aspx?sType=wid&sDocName=Report_Name&sWindow=NEW&sReportName=Company Details&lsSPartner Id=" + [Partner Id] +"&lsSPartner Name=" + URLEncode([Partner Name]) +"'>View catalog</a>"
    This one doesn't work for special characters
    ="<a href='../../scripts/openDocument.aspx?sType=wid&sDocName=RP-DSPP-Company_Catalog_CORETEAM&sWindow=NEW&sReportName=Company Details&lsSPartner Id=" + [Partner Id] +"&lsSPartner Name=" + [Partner Name] +"'>View catalog</a>"
    Thank you,
    Marcela

  • Getting "layer break" error message when trying to Preview a single sided DVD, or build an ISO image or disk folder

    Hi!  Hoping someone might be able to help with an odd problem.  I haven't found anything in the forums or the web that match my symptoms.
    I've been using Encore CS6 (v6.0.1.013) on a MacBook retina over the past year to successfully create a number of single sided DVDs with menus, chapters, and all that.  I usually make a copy of a previous DVD project, and then replace video assets with the new files and transcodes, move and rename chapter markers, and rework the menus in Photoshop.  I then will build ISO images for both DVD and Blu-Ray (both single-sided), and use those to burn many copies of each DVD for clients.
    This week, while developing one of these projects, when trying to build a DVD ISO image that looked like it would fit on a 4.7 GB DVD, I received the "layer break" message ("The chosen layer break does not satisfy dual layer requirements.  To fix this, either set a new layer break manually, or choose to set layer break automatically.") because (I'm guessing) the material was too long for the 4.7 GB DVD (the Build screen now shows about 5GB of material are in the project).  This is the first time I've seen that message - usually Encore just tells me the material is too big for the DVD.
    I re-transcoded the material down to well under 4.7 GB (about 3.9 GB), reverted and replaced the transcoded files, and now the DVD build screen shows that there are about 700MB free on a 4.7 GB DVD.  But I still have not been able to build any version of the DVD (image, folder, disc), without getting the "layer break" message.  I also now get this same layer break message when trying to "Preview from Here" any menu, killing my ability to preview the DVD menus in Encore.
    Just to see what would happen, I chose an 8.4GB Dual Layer DVD, and chose "manual" instead of "automatic" for the layer break selection, but never got the layer break selection dialog box, just the "layer break" error message.
    I typically build both DVD and Blu-Ray images from the same material in the same project.  I use different transcoding settings for each, and I have been able to build a Blu-Ray ISO without this "layer break" error on the Blu-Ray build (which is about 24.5GB when built).  And as I mentioned before, this is the first project on which I've even seen this layer break message.
    Any suggestions would be greatly appreciated!  I'd rather not recreate the project from scratch, but I'm worried that I may have to.
    Thanks
    Jon

    The total project being small enough may mean you have one layer that is too big. Both layers have to be smaller than half the disk, right?
    Be sure you "run as administrator" for dual layer projects.
    Encore may set the layer break correctly if it finds a good place, but there are numerous complaints about it being unreliable.
    Build to a folder (no layer break is set), then use ImgBurn to build and ask to be prompted for layer break. ImgBurn is also unreliable under some circumstances.
    The most frequent problems appear to be when there is no good location for a break. Do a search for "layer break imgburn" and you will see a variety of strategies.
    http://forum.imgburn.com/index.php?/topic/1777-how-to-create-a-double-layer-dvd-video-imag e-file-using-imgburn/
    Also see these posts:
    Neil Wilkes
    http://forums.adobe.com/message/3466255#3466255
    Neil Wilkes
    http://forums.adobe.com/message/4054265#4054265
    Neil Wilkes
    http://forums.adobe.com/message/4054269#4054269
    Jon Geddes
    http://forums.adobe.com/message/4002647#4002647
    shuchi shrivastava
    http://forums.adobe.com/message/3905911#3905911
    Jon Geddes and Neil Wilkes
    http://forums.adobe.com/message/4003221#4003221

Maybe you are looking for

  • How to call BSP page from Webdynpro ABAP ?

    Hi All,      I have a BSP page which has a page attibute . I need to pass a parameter from Webdynpro ALV table to the BSP page attibute and also need to display that BSP Page . Can any one help me out , how to proceed in this ? Regards, Kalpana A .

  • Site definition disappeared [was: I need some help...]

    One week I signed on DW to update my website.  The next week I came back to update my site.  When I logged in, the site was gone in the sign up.  What happened and do I just need to reset up the site?  Thanks! [Subject line edited for clarity by mode

  • Safari crashes on ipad all the time

    Hello, Safari crashes all the time on my ipad all the time.  I've cleared caches, history and cookies many times. I've cleared the entire ipad and reloaded it as a new ipad setup and it still crashes.  Any suggestions?  It is frustrating. Looking for

  • CS5 shuts down immediately after opening

    It worked fine yesterday. Today when I start the program, it appears to go all the way through its start-up procedures then immediately shuts down and disappears. I'm unable to access anything in the menus before it shuts down so I can't check or cha

  • Controlling the layout of application objects in MIDP

    If I don't want to use the MIDP high level user interface API, can I control the layout and position of application objects in MIDP? thanks in advance, Rani