ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Dealing with apostrophe in IFS path names on CL commands

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dealing with apostrophe in IFS path names on CL commands

    Is there an easy way to deal with this on the interactive command line?

    CHGAUT OBJ('/home/folder's_name/subfolder') USER(AUSER) DTAAUT(*RX) OBJAUT(*NONE) SUBTREE(*ALL)

    I've got a couple work around options, but wondering if there is a way to deal with this on command line I'm not aware of...

  • #2
    To represent an apostrophe inside a literal within a command, you have to replace it with 2 apostrophes:
    CHGAUT OBJ('/home/folder''s_name/subfolder') USER(AUSER) DTAAUT(*RX) OBJAUT(*NONE) SUBTREE(*ALL)

    Comment

    Working...
    X